Changeset 9778

Show
Ignore:
Timestamp:
06/09/08 17:04:13 (5 months ago)
Author:
js
Message:

* Fixed a BT when receiving receipt request for offline messages.
* Fixed a BT when receiving receipt request for users not in roster.

Files:
1 modified

Legend:

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

    r9772 r9778  
    16941694                # Receipt requested 
    16951695                # TODO: We shouldn't answer if we're invisible! 
     1696                cont = gajim.contacts.get_contact(self.name, 
     1697                        common.gajim.get_room_and_nick_from_fjid(frm)[0]) 
    16961698                if msg.getTag('request', namespace='urn:xmpp:receipts') and \ 
    16971699                gajim.config.get_per('accounts', self.name, 'answer_receipt') \ 
    1698                 and gajim.contacts.get_contact_from_full_jid(self.name, frm). \ 
    1699                 sub not in (u'to', u'none'): 
     1700                and cont and cont.sub not in (u'to', u'none'): 
    17001701                        receipt = common.xmpp.Message(to = jid, typ = 'chat') 
    17011702                        receipt.setID(msg.getID())