Skip to content
Snippets Groups Projects
Commit 0acaa647 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix caps stuff introduced in [10596]

parent 6512fc0d
No related branches found
No related tags found
No related merge requests found
......@@ -274,15 +274,15 @@ class ConnectionCaps(object):
def _capsDiscoCB(self, jid, node, identities, features, dataforms):
contact = gajim.contacts.get_contact_from_full_jid(self.name, jid)
print contact
if not contact:
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
contact = gajim.contacts.get_gc_contact(self.name, room_jid, nick)
if contact is None:
return
print contact, contact.caps_node, contact.caps_hash_method
if not contact.caps_node:
return # we didn't asked for that?
if contact.caps_hash_method != 'old':
return
if contact.caps_hash_method != 'old':
computed_hash = helpers.compute_caps_hash(identities, features,
dataforms=dataforms, hash_method=contact.caps_hash_method)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment