Use the namespace variable. Sorry, forgot to change that here.
This commit is contained in:
		
							parent
							
								
									abdd43e5eb
								
							
						
					
					
						commit
						9c75374da4
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -1695,9 +1695,10 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, | ||||||
| 		# TODO: We shouldn't answer if we're invisible! | 		# TODO: We shouldn't answer if we're invisible! | ||||||
| 		contact = gajim.contacts.get_contact(self.name, | 		contact = gajim.contacts.get_contact(self.name, | ||||||
| 			common.gajim.get_room_and_nick_from_fjid(frm)[0]) | 			common.gajim.get_room_and_nick_from_fjid(frm)[0]) | ||||||
| 		if msg.getTag('request', namespace='urn:xmpp:receipts') and \ | 		if msg.getTag('request', namespace=common.xmpp.NS_RECEIPTS) \ | ||||||
| 		gajim.config.get_per('accounts', self.name, 'answer_receipts') \ | 		and gajim.config.get_per('accounts', self.name, | ||||||
| 		and contact and contact.sub not in (u'to', u'none'): | 		'answer_receipts') and contact and contact.sub \ | ||||||
|  | 		not in (u'to', u'none'): | ||||||
| 			receipt = common.xmpp.Message(to = jid, typ = 'chat') | 			receipt = common.xmpp.Message(to = jid, typ = 'chat') | ||||||
| 			receipt.setID(msg.getID()) | 			receipt.setID(msg.getID()) | ||||||
| 			receipt.setTag('received', | 			receipt.setTag('received', | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue