don't send receipt answer for forwarded messages. Fixes #7548

This commit is contained in:
Yann Leboulanger 2013-11-05 13:12:38 +01:00
parent 0bae08571a
commit 47b00c5c23
1 changed files with 2 additions and 1 deletions

View File

@ -1211,7 +1211,8 @@ class ConnectionHandlersBase:
gc_contact = gajim.contacts.get_gc_contact(self.name, obj.jid, nick)
if obj.receipt_request_tag and gajim.config.get_per('accounts',
self.name, 'answer_receipts') and ((contact and contact.sub \
not in (u'to', u'none')) or gc_contact) and obj.mtype != 'error':
not in (u'to', u'none')) or gc_contact) and obj.mtype != 'error' and \
not obj.forwarded:
receipt = nbxmpp.Message(to=obj.fjid, typ='chat')
receipt.setID(obj.id_)
receipt.setTag('received', namespace='urn:xmpp:receipts',