Author: bct Date: 2008-06-24 03:17:02 +0200 (Tue, 24 Jun 2008) New Revision: 9834
Modified: trunk/src/common/connection_handlers.py Log: don't send thread ids in message receipts unless there's a thread
Modified: trunk/src/common/connection_handlers.py =================================================================== --- trunk/src/common/connection_handlers.py 2008-06-23 19:42:40 UTC (rev 9833) +++ trunk/src/common/connection_handlers.py 2008-06-24 01:17:02 UTC (rev 9834) @@ -1663,7 +1663,7 @@
encrypted = False xep_200_encrypted = msg.getTag('c', namespace=common.xmpp.NS_STANZA_CRYPTO) - + # Receipt requested # TODO: We shouldn't answer if we're invisible! contact = gajim.contacts.get_contact(self.name, @@ -1676,7 +1676,9 @@ receipt.setID(msg.getID()) receipt.setTag('received', namespace='urn:xmpp:receipts') - receipt.setThread(thread_id) + + if thread_id: + receipt.setThread(thread_id) con.send(receipt)
if mtype != 'groupchat':