Changeset a04705b
- Timestamp:
- 2016-12-26T23:07:56Z (8 years ago)
- Branches:
- master
- Children:
- 1882b70
- Parents:
- d57484d
- Location:
- protocols/jabber
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/conference.c
rd57484d ra04705b 167 167 jabber_buddy_remove_bare(c->ic, jc->name); 168 168 169 g_free(jc->last_sent_message); 169 170 g_free(jc->my_full_jid); 170 171 g_free(jc->name); … … 187 188 188 189 jabber_cache_add(ic, node, jabber_chat_self_message); 190 191 g_free(jc->last_sent_message); 192 jc->last_sent_message = g_strdup(message); 189 193 190 194 return !jabber_write_packet(ic, node); … … 494 498 imcb_chat_log(chat, "From conference server: %s", body->text); 495 499 return; 496 } else if (jc && jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me && 497 (jabber_cache_handle_packet(ic, node) == XT_ABORT)) { 498 /* Self message marked by this bitlbee, don't show it */ 499 return; 500 } else if (jc && jc->flags & JCFLAG_MESSAGE_SENT && bud == jc->me) { 501 if (jabber_cache_handle_packet(ic, node) == XT_ABORT) { 502 /* Self message marked by this bitlbee, don't show it */ 503 return; 504 } else if (xt_find_attr(node, "id") == NULL && 505 g_strcmp0(body->text, jc->last_sent_message) == 0) { 506 /* Some misbehaving servers (like slack) eat the ids and echo anyway. 507 * Try to detect those cases by comparing against the last sent message. */ 508 return; 509 } 500 510 } 501 511 -
protocols/jabber/jabber.h
rd57484d ra04705b 161 161 struct jabber_buddy *me; 162 162 char *invite; 163 char *last_sent_message; 163 164 }; 164 165
Note: See TracChangeset
for help on using the changeset viewer.