From 47b00c5c23e05faa4a583faf26d095bf286f190b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 5 Nov 2013 13:12:38 +0100 Subject: [PATCH] don't send receipt answer for forwarded messages. Fixes #7548 --- src/common/connection_handlers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index da336aa8f..efe943ca2 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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',