Commit b0697272 authored by Daniel Brötzmann's avatar Daniel Brötzmann

Get identity category and type correctly

parent 7ee22d83
Pipeline #3853 passed with stages
in 3 minutes and 9 seconds
......@@ -80,8 +80,8 @@ def get_client_identity(client_caps):
cache_item = lookup_item(capscache)
for identity in cache_item.identities:
if identity.get('category') == 'client':
return identity.get('type')
if identity.category == 'client':
return identity.type
def create_suitable_client_caps(node, caps_hash, hash_method, fjid=None):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment