From 1e8c3d75e00260e23dbfdc2efd392e569a8d2849 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 5 Mar 2016 15:23:48 +0100 Subject: [PATCH] fix sending receipts. Fixes #7548 --- src/common/connection_handlers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index a4035f4c6..5834fb54b 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1169,7 +1169,10 @@ class ConnectionHandlersBase: 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