From ff2a02269d7c4375fa54de2f0bf5986e7d86ac2c Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 4 Aug 2009 00:49:56 +0200
Subject: [PATCH] request privacy rules and metacontacts only once at startup

---
 src/common/connection.py          | 1 +
 src/common/connection_handlers.py | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/connection.py b/src/common/connection.py
index d15e62b176..5aada690c8 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -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 = '')
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index 12192a388f..203faddad3 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -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))
-- 
GitLab