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

Commits:
dbd3165c by Philipp Hörist at 2018-10-19T15:52:00Z
DiscoveryWindow: Add default identity

Fixes #9386

- - - - -


1 changed file:

- gajim/disco.py


Changes:

=====================================
gajim/disco.py
=====================================
@@ -405,6 +405,10 @@ class ServicesCache:
         Callback for when we receive an agent's info
         array is (agent, node, identities, features, data)
         """
+        if not identities:
+            # Ejabberd doesn't send identities when using admin nodes
+            identities = [{'category': 'server', 'type': 'im', 'name': node}]
+
         self._on_agent_info(str(from_), node, identities, features, data)
 
     def _disco_info_error(self, from_, error):



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/dbd3165c00bcb6100d6605e46b69f0ef4552d297
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