changeset c9fb0c33631e in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=c9fb0c33631e 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 be3278309ee5 -r c9fb0c33631e src/common/connection_handlers.py --- a/src/common/connection_handlers.py Sat Mar 05 14:22:56 2016 +0100 +++ b/src/common/connection_handlers.py Sat Mar 05 15:23:48 2016 +0100 @@ -1169,7 +1169,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