Changeset 29ff5c2 for protocols/jabber/message.c
- Timestamp:
- 2015-11-21T00:01:50Z (8 years ago)
- Parents:
- e4f08bf (diff), 8fdeaa5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/message.c
re4f08bf r29ff5c2 37 37 if (!from) { 38 38 return XT_HANDLED; /* Consider this packet corrupted. */ 39 } 39 40 40 } 41 if (request && id) { 41 if (request && id && g_strcmp0(type, "groupchat") != 0) { 42 42 /* Send a message receipt (XEP-0184), looking like this: 43 * <message 44 * from='kingrichard@royalty.england.lit/throne' 45 * id='bi29sg183b4v' 46 * to='northumberland@shakespeare.lit/westminster'> 43 * <message from='...' id='...' to='...'> 47 44 * <received xmlns='urn:xmpp:receipts' id='richard2-4.1.247'/> 48 * </message> */ 45 * </message> 46 * 47 * MUC messages are excluded, since receipts aren't supposed to be sent over MUCs 48 * (XEP-0184 section 5.3) and replying to those may result in 'forbidden' errors. 49 */ 49 50 struct xt_node *received, *receipt; 50 51 … … 142 143 imcb_buddy_typing(ic, from, OPT_TYPING); 143 144 } 144 /* No need to send a "stopped typing" signal when there's a message. */ 145 else if (xt_find_node(node->children, "active") && (body == NULL)) { 145 else if (xt_find_node(node->children, "active")) { 146 146 bud->flags |= JBFLAG_DOES_XEP85; 147 imcb_buddy_typing(ic, from, 0); 147 148 /* No need to send a "stopped typing" signal when there's a message. */ 149 if (body == NULL) { 150 imcb_buddy_typing(ic, from, 0); 151 } 148 152 } else if (xt_find_node(node->children, "paused")) { 149 153 bud->flags |= JBFLAG_DOES_XEP85;
Note: See TracChangeset
for help on using the changeset viewer.