From 02e24ab1202c344c11eeed809647fa8968f35c97 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 23 Jul 2009 22:57:33 +0200
Subject: [PATCH] don't show many accepted window when we add many contacts
 through RIE

---
 src/dialogs.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/dialogs.py b/src/dialogs.py
index 20fd00a2e5..aea7e08fd1 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -2932,7 +2932,11 @@ class RosterItemExchangeWindow:
 					groups = model[iter][3].split(', ')
 					if groups == ['']:
 						groups = []
-					gajim.interface.roster.req_sub(self, model[iter][1], message,
+					jid = model[iter][1].decode('utf-8')
+					if gajim.jid_is_transport(self.jid_from):
+						gajim.connections[self.account].automatically_added.append(
+							jid)
+					gajim.interface.roster.req_sub(self, jid, message,
 						self.account, groups=groups, nickname=model[iter][2],
 						auto_auth=True)
 				iter = model.iter_next(iter)
-- 
GitLab