Commit e0e19d35 authored by Yann Leboulanger's avatar Yann Leboulanger

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

parent 0582e43f
......@@ -1211,7 +1211,8 @@ class ConnectionHandlersBase:
gc_contact = gajim.contacts.get_gc_contact(, obj.jid, nick)
if obj.receipt_request_tag and gajim.config.get_per('accounts',, '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.setTag('received', namespace='urn:xmpp:receipts',
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment