comparison 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
comparison
equal deleted inserted replaced
617:5baca9d46c34 629:57a651a5b31d
378 self._group_panel.add(group) 378 self._group_panel.add(group)
379 for group in removed_groups: 379 for group in removed_groups:
380 self._group_panel.remove(group) 380 self._group_panel.remove(group)
381 381
382 ### JIDS ### 382 ### JIDS ###
383 current_contacts = set(self._cache.keys()) 383 current_contacts = set([jid_ for jid_ in self._cache.keys() if self.entityToShow(jid_)])
384 shown_contacts = set(self._contacts_panel.getContacts()) 384 shown_contacts = set(self._contacts_panel.getContacts())
385 new_contacts = current_contacts.difference(shown_contacts) 385 new_contacts = current_contacts.difference(shown_contacts)
386 removed_contacts = shown_contacts.difference(current_contacts) 386 removed_contacts = shown_contacts.difference(current_contacts)
387 387
388 for contact in new_contacts: 388 for contact in new_contacts: