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