Skip to content
Snippets Groups Projects
Commit 23d5a6e1 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Discovery: Store Account/Server disco info

parent 887f1112
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,17 @@ def __init__(self, con):
ns=nbxmpp.NS_DISCO_ITEMS),
]
self._account_info = None
self._server_info = None
@property
def account_info(self):
return self._account_info
@property
def server_info(self):
return self._server_info
def disco_contact(self, jid, node=None):
success_cb = self._con.get_module('Caps').contact_info_received
self.disco_info(jid, node, callback=success_cb)
......@@ -99,6 +110,8 @@ def _account_info_received(self, result):
self._log.info('Account info received: %s', result.jid)
self._account_info = result
self._con.get_module('MAM').pass_disco(result)
self._con.get_module('PEP').pass_disco(result)
self._con.get_module('PubSub').pass_disco(result)
......@@ -122,6 +135,8 @@ def _server_info_received(self, result):
self._log.info('Server info received: %s', result.jid)
self._server_info = result
self._con.get_module('SecLabels').pass_disco(result)
self._con.get_module('Blocking').pass_disco(result)
self._con.get_module('VCardTemp').pass_disco(result)
......
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