Changeset 9874
- Timestamp:
- 07/02/08 12:48:15 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/common/connection.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/connection.py
r9841 r9874 1102 1102 user_nick) 1103 1103 1104 # TODO: We might want to write a function so we don't need to 1105 # reproduce that ugly if somewhere else. 1106 if resource: 1107 contact = gajim.contacts.get_contact(self.name, jid, 1108 resource) 1109 else: 1110 contact = gajim.contacts. \ 1111 get_contact_with_highest_priority(self.name, 1112 jid) 1113 1104 1114 # chatstates - if peer supports xep85 or xep22, send chatstates 1105 1115 # please note that the only valid tag inside a message containing a <body> … … 1124 1134 1125 1135 # XEP-0184 1126 if resource:1127 contact = gajim.contacts.get_contact(self.name, jid,1128 resource)1129 else:1130 contact = gajim.contacts. \1131 get_contact_with_highest_priority(self.name,1132 jid)1133 1136 if msgtxt and gajim.config.get_per('accounts', self.name, 1134 'request_receipt') and common.xmpp.NS_RECEIPTS in \ 1135 gajim.capscache[(contact.caps_hash_method, 1136 contact.caps_hash)].features: 1137 'request_receipt') and gajim.capscache.is_supported(contact, 1138 common.xmpp.NS_RECEIPTS: 1137 1139 msg_iq.setTag('request', 1138 1140 namespace=common.xmpp.NS_RECEIPTS)
