From 6c56dd173bbdd38ca2cbd816ed8984d09ecf0d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=C3=ABl=20Verrier?= Date: Tue, 30 Jun 2009 17:06:17 +0200 Subject: [PATCH] * now there is no more sparkling when we update the RosterWindow with the roster received from the server (when server does not handle roster versioning or when it resends the whole roster) --- src/common/connection_handlers.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 2c3453ef8..d75719ec2 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -2491,10 +2491,17 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, # we can't determine which iconset to use self.discoverInfo(jid) - print raw_roster gajim.logger.replace_roster(self.name, roster_version, roster) if received_from_server: - self.dispatch('ROSTER', roster) + for contact in gajim.contacts.iter_contacts(self.name): + if contact.jid not in roster: + self.dispatch('ROSTER_INFO', (self.name, + (contact.jid, None, None, None, ()))) + for jid in roster: + self.dispatch('ROSTER_INFO', (jid, roster[jid]['name'], + roster[jid]['subscription'], roster[jid]['ask'], + roster[jid]['groups'])) + #self.dispatch('ROSTER', roster) def _send_first_presence(self, signed = ''): show = self.continue_connect_info[0]