fix caps stuff introduced in [10596]
This commit is contained in:
parent
6512fc0d86
commit
0acaa647bd
1 changed files with 2 additions and 2 deletions
|
@ -274,15 +274,15 @@ class ConnectionCaps(object):
|
||||||
|
|
||||||
def _capsDiscoCB(self, jid, node, identities, features, dataforms):
|
def _capsDiscoCB(self, jid, node, identities, features, dataforms):
|
||||||
contact = gajim.contacts.get_contact_from_full_jid(self.name, jid)
|
contact = gajim.contacts.get_contact_from_full_jid(self.name, jid)
|
||||||
|
print contact
|
||||||
if not contact:
|
if not contact:
|
||||||
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
|
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
|
||||||
contact = gajim.contacts.get_gc_contact(self.name, room_jid, nick)
|
contact = gajim.contacts.get_gc_contact(self.name, room_jid, nick)
|
||||||
if contact is None:
|
if contact is None:
|
||||||
return
|
return
|
||||||
|
print contact, contact.caps_node, contact.caps_hash_method
|
||||||
if not contact.caps_node:
|
if not contact.caps_node:
|
||||||
return # we didn't asked for that?
|
return # we didn't asked for that?
|
||||||
if contact.caps_hash_method != 'old':
|
|
||||||
return
|
|
||||||
if contact.caps_hash_method != 'old':
|
if contact.caps_hash_method != 'old':
|
||||||
computed_hash = helpers.compute_caps_hash(identities, features,
|
computed_hash = helpers.compute_caps_hash(identities, features,
|
||||||
dataforms=dataforms, hash_method=contact.caps_hash_method)
|
dataforms=dataforms, hash_method=contact.caps_hash_method)
|
||||||
|
|
Loading…
Add table
Reference in a new issue