mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Send active stanza in messages
To continue receiving typing notifications
This commit is contained in:
parent
d3f5daf11d
commit
41daf09432
@ -155,7 +155,11 @@ jabber_send(const char * const msg, const char * const recipient)
|
||||
char *coded_msg2 = str_replace(coded_msg, "<", "<");
|
||||
char *coded_msg3 = str_replace(coded_msg2, ">", ">");
|
||||
|
||||
xmpp_stanza_t *reply, *body, *text;
|
||||
xmpp_stanza_t *reply, *body, *text, *active;
|
||||
|
||||
active = xmpp_stanza_new(jabber_conn.ctx);
|
||||
xmpp_stanza_set_name(active, "active");
|
||||
xmpp_stanza_set_ns(active, "http://jabber.org/protocol/chatstates");
|
||||
|
||||
reply = xmpp_stanza_new(jabber_conn.ctx);
|
||||
xmpp_stanza_set_name(reply, "message");
|
||||
@ -167,6 +171,7 @@ jabber_send(const char * const msg, const char * const recipient)
|
||||
|
||||
text = xmpp_stanza_new(jabber_conn.ctx);
|
||||
xmpp_stanza_set_text(text, coded_msg3);
|
||||
xmpp_stanza_add_child(reply, active);
|
||||
xmpp_stanza_add_child(body, text);
|
||||
xmpp_stanza_add_child(reply, body);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user