fix sending receipts. Fixes #7548

This commit is contained in:
Yann Leboulanger 2016-03-05 15:23:48 +01:00
parent f405228041
commit 1e8c3d75e0
1 changed files with 4 additions and 1 deletions

View File

@ -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