don't send thread ids in message receipts unless there's a thread
This commit is contained in:
parent
9512a941ad
commit
d885e05500
1 changed files with 4 additions and 2 deletions
|
@ -1663,7 +1663,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
|
|
||||||
encrypted = False
|
encrypted = False
|
||||||
xep_200_encrypted = msg.getTag('c', namespace=common.xmpp.NS_STANZA_CRYPTO)
|
xep_200_encrypted = msg.getTag('c', namespace=common.xmpp.NS_STANZA_CRYPTO)
|
||||||
|
|
||||||
# Receipt requested
|
# Receipt requested
|
||||||
# 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,
|
||||||
|
@ -1676,7 +1676,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
receipt.setID(msg.getID())
|
receipt.setID(msg.getID())
|
||||||
receipt.setTag('received',
|
receipt.setTag('received',
|
||||||
namespace='urn:xmpp:receipts')
|
namespace='urn:xmpp:receipts')
|
||||||
receipt.setThread(thread_id)
|
|
||||||
|
if thread_id:
|
||||||
|
receipt.setThread(thread_id)
|
||||||
con.send(receipt)
|
con.send(receipt)
|
||||||
|
|
||||||
if mtype != 'groupchat':
|
if mtype != 'groupchat':
|
||||||
|
|
Loading…
Add table
Reference in a new issue