Changeset 9834

Show
Ignore:
Timestamp:
06/24/08 03:17:02 (5 months ago)
Author:
bct
Message:

don't send thread ids in message receipts unless there's a thread

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r9829 r9834  
    16641664                encrypted = False 
    16651665                xep_200_encrypted = msg.getTag('c', namespace=common.xmpp.NS_STANZA_CRYPTO) 
    1666                  
     1666 
    16671667                # Receipt requested 
    16681668                # TODO: We shouldn't answer if we're invisible! 
     
    16771677                        receipt.setTag('received', 
    16781678                                namespace='urn:xmpp:receipts') 
    1679                         receipt.setThread(thread_id) 
     1679 
     1680                        if thread_id: 
     1681                                receipt.setThread(thread_id) 
    16801682                        con.send(receipt) 
    16811683