changeset 57ee64f223f4 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=57ee64f223f4 description: fix sending receipts. Fixes #7548
diffstat:
src/common/connection_handlers.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r af6f475add9e -r 57ee64f223f4 src/common/connection_handlers.py --- a/src/common/connection_handlers.py Sat Mar 05 15:10:58 2016 +0100 +++ b/src/common/connection_handlers.py Sat Mar 05 15:23:48 2016 +0100 @@ -1171,7 +1171,10 @@ contact = gajim.contacts.get_contact(self.name, obj.jid) nick = obj.resource gc_contact = gajim.contacts.get_gc_contact(self.name, obj.jid, nick) - jid_to = obj.stanza.getTo() + if obj.sent: + jid_to = obj.stanza.getFrom() + else: + jid_to = obj.stanza.getTo() reply = False if not jid_to: reply = True