diff src/browser/sat_browser/contact_list.py @ 629:57a651a5b31d frontends_multi_profiles

browser side (contact list): use EntityToShow to know which contacts must be displayed
author Goffi <goffi@goffi.org>
date Mon, 23 Feb 2015 18:14:07 +0100
parents 5baca9d46c34
children 71abccd8d228
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Wed Feb 11 11:21:27 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Mon Feb 23 18:14:07 2015 +0100
@@ -380,7 +380,7 @@
             self._group_panel.remove(group)
 
         ### JIDS ###
-        current_contacts = set(self._cache.keys())
+        current_contacts = set([jid_ for jid_ in self._cache.keys() if self.entityToShow(jid_)])
         shown_contacts = set(self._contacts_panel.getContacts())
         new_contacts = current_contacts.difference(shown_contacts)
         removed_contacts = shown_contacts.difference(current_contacts)