don't send receipt answer for forwarded messages. Fixes #7548
This commit is contained in:
		
							parent
							
								
									bc62cb1da8
								
							
						
					
					
						commit
						43f21dcbeb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1209,7 +1209,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 ('to', 'none')) or gc_contact) and obj.mtype != 'error': | ||||
|         not in ('to', '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', | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue