request privacy lists after disco result
This commit is contained in:
parent
ff2a02269d
commit
260f1541d1
|
@ -157,6 +157,8 @@ class Connection(ConnectionHandlers):
|
|||
else:
|
||||
self.pingalives = 0
|
||||
self.privacy_rules_supported = False
|
||||
# Used to ask privacy only once at connection
|
||||
self.privacy_rules_requested = False
|
||||
self.blocked_list = []
|
||||
self.blocked_contacts = []
|
||||
self.blocked_groups = []
|
||||
|
@ -1035,7 +1037,7 @@ class Connection(ConnectionHandlers):
|
|||
self.connection.onreceive(None)
|
||||
self.discoverInfo(gajim.config.get_per('accounts', self.name, 'hostname'),
|
||||
id_prefix='Gajim_')
|
||||
self._request_privacy()
|
||||
self.privacy_rules_requested = False
|
||||
|
||||
def _request_privacy(self):
|
||||
iq = common.xmpp.Iq('get', common.xmpp.NS_PRIVACY, xmlns = '')
|
||||
|
|
|
@ -914,6 +914,9 @@ class ConnectionDisco:
|
|||
self.available_transports[transport_type].append(jid)
|
||||
else:
|
||||
self.available_transports[transport_type] = [jid]
|
||||
if not self.privacy_rules_requested:
|
||||
self.privacy_rules_requested = True
|
||||
self._request_privacy()
|
||||
|
||||
self.dispatch('AGENT_INFO_INFO', (jid, node, identities,
|
||||
features, data))
|
||||
|
|
Loading…
Reference in New Issue