Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 2032:f740c4128f76
Fix receipts handling according to recent XEP updates
* add lm_get_uid() @xmpp_helper.h
* identify receipts by id attribute of 'received' subelement
instead of stanza id
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sun, 14 Oct 2012 17:39:11 +0200 |
parents | ca40744c03be |
children | f8958ab545ac |
comparison
equal
deleted
inserted
replaced
2031:2b13be73351d | 2032:f740c4128f76 |
---|---|
2245 // Show jidto's buffer unless the buddy is not in the buddylist | 2245 // Show jidto's buffer unless the buddy is not in the buddylist |
2246 if (roster_elt && g_list_position(buddylist, roster_elt->data) != -1) | 2246 if (roster_elt && g_list_position(buddylist, roster_elt->data) != -1) |
2247 scr_show_window(jidto, FALSE); | 2247 scr_show_window(jidto, FALSE); |
2248 } | 2248 } |
2249 | 2249 |
2250 void scr_remove_receipt_flag(const char *bjid, gpointer xep184) | 2250 void scr_remove_receipt_flag(const char *bjid, gconstpointer xep184) |
2251 { | 2251 { |
2252 winbuf *win_entry = scr_search_window(bjid, FALSE); | 2252 winbuf *win_entry = scr_search_window(bjid, FALSE); |
2253 if (win_entry) { | 2253 if (win_entry) { |
2254 hbuf_remove_receipt(win_entry->bd->hbuf, xep184); | 2254 hbuf_remove_receipt(win_entry->bd->hbuf, xep184); |
2255 if (chatmode && (buddy_search_jid(bjid) == current_buddy)) | 2255 if (chatmode && (buddy_search_jid(bjid) == current_buddy)) |