diff src/browser/sat_browser/contact_list.py @ 673:e489218886d7 frontends_multi_profiles

browser_side: add attribute "merge_resources" to ContactsPanel to display the MUC occupants + override Chat.replaceUser and Chat.removeUser
author souliane <souliane@mailoo.org>
date Wed, 11 Mar 2015 19:01:27 +0100
parents 2201ff543a05
children a90cc8fc9605
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Wed Mar 11 12:50:19 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Wed Mar 11 19:01:27 2015 +0100
@@ -409,7 +409,7 @@
         @param group (unicode): the group to check
         @return: boolean
         """
-        raise Exception # FIXME: remove this method
+        raise Exception  # FIXME: remove this method
         for jid_ in self.groups[group]:
             if self._contacts_panel.getContactBox(jid_).isVisible():
                 return True
@@ -434,7 +434,7 @@
         entity_bare = entity.bare
         show = self.getCache(entity_bare, C.PRESENCE_SHOW) # we use cache to have the show nformation of main resource only
         self._contacts_panel.setState(entity_bare, "availability", show)
-        self.update()
+        self.update()  # FIXME: should update the list without rebuilding it all
 
     # def updateVisibility(self, jids, groups):
     #     """Set the widgets visibility for the given contacts and groups