Philipp Hörist pushed to branch master at gajim / gajim


Commits:
b0697272 by Daniel Brötzmann at 2019-07-03T13:09:53Z
Get identity category and type correctly

- - - - -


1 changed file:

- gajim/common/caps_cache.py


Changes:

=====================================
gajim/common/caps_cache.py
=====================================
@@ -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):
     """



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/b0697272d5d4cbba97a1bd567c608ac73f33df38

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/b0697272d5d4cbba97a1bd567c608ac73f33df38
You're receiving this email because of your account on dev.gajim.org.

_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to