request privacy rules and metacontacts only once at startup
This commit is contained in:
parent
1f32083334
commit
ff2a02269d
|
@ -1035,6 +1035,7 @@ class Connection(ConnectionHandlers):
|
|||
self.connection.onreceive(None)
|
||||
self.discoverInfo(gajim.config.get_per('accounts', self.name, 'hostname'),
|
||||
id_prefix='Gajim_')
|
||||
self._request_privacy()
|
||||
|
||||
def _request_privacy(self):
|
||||
iq = common.xmpp.Iq('get', common.xmpp.NS_PRIVACY, xmlns = '')
|
||||
|
|
|
@ -914,7 +914,6 @@ class ConnectionDisco:
|
|||
self.available_transports[transport_type].append(jid)
|
||||
else:
|
||||
self.available_transports[transport_type] = [jid]
|
||||
self._request_privacy()
|
||||
|
||||
self.dispatch('AGENT_INFO_INFO', (jid, node, identities,
|
||||
features, data))
|
||||
|
|
Loading…
Reference in New Issue