* Fixed a BT when receiving receipt request for offline messages.
* Fixed a BT when receiving receipt request for users not in roster.
This commit is contained in:
parent
f9c981df5d
commit
6fe9bee70b
|
@ -1693,10 +1693,11 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
|
|
||||||
# Receipt requested
|
# Receipt requested
|
||||||
# TODO: We shouldn't answer if we're invisible!
|
# TODO: We shouldn't answer if we're invisible!
|
||||||
|
cont = 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 \
|
if msg.getTag('request', namespace='urn:xmpp:receipts') and \
|
||||||
gajim.config.get_per('accounts', self.name, 'answer_receipt') \
|
gajim.config.get_per('accounts', self.name, 'answer_receipt') \
|
||||||
and gajim.contacts.get_contact_from_full_jid(self.name, frm). \
|
and cont and cont.sub not in (u'to', u'none'):
|
||||||
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…
Reference in New Issue