changeset 252bb3cf2c59 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=252bb3cf2c59 description: let's be compatible with XEP-0184 v1.0.
diffstat:
src/common/connection_handlers.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 11558e32ed1a -r 252bb3cf2c59 src/common/connection_handlers.py --- a/src/common/connection_handlers.py Wed May 04 22:47:38 2011 +0200 +++ b/src/common/connection_handlers.py Sat May 07 08:44:15 2011 +0200 @@ -1005,8 +1005,11 @@ # We got our message's receipt if obj.receipt_received_tag and obj.session.control and \ gajim.config.get_per('accounts', self.name, 'request_receipt'): - obj.session.control.conv_textview.hide_xep0184_warning( - obj.receipt_received_tag.getAttr('id')) + id_ = obj.receipt_received_tag.getAttr('id') + if not id_: + # old XEP implementation + id_ = obj.id_ + obj.session.control.conv_textview.hide_xep0184_warning(id_)
if obj.mtype == 'error': if not obj.msgtxt: