diff src/browser/sat_browser/contact_group.py @ 687:3845a086f0b3

browser_side: update ContactList, Chat, ContactsPanel, ContactBox, ContactLabel to update the display using listeners as it is done in quick_frontend: - Chat uses presence and avatar listener, remove unecessary methods for MUC and contact states - contact list doesn't add unecessary ContactBox (e.g for MUC bare entities) - nick, message alerts are handled directly in ContactLabel
author souliane <souliane@mailoo.org>
date Mon, 23 Mar 2015 09:35:46 +0100
parents 9877607c719a
children 16079280a39e
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_group.py	Fri Mar 27 00:15:42 2015 +0100
+++ b/src/browser/sat_browser/contact_group.py	Mon Mar 23 09:35:46 2015 +0100
@@ -224,12 +224,12 @@
             contacts = self.all_contacts
         for contact in contacts:
             if self.toggle.showAll:
-                self.contacts.getContactBox(contact).setVisible(True)
+                self.contacts.updateContactBox(contact).setVisible(True)
             else:
                 if contact in self.groups.items_remaining:
-                    self.contacts.getContactBox(contact).setVisible(True)
+                    self.contacts.updateContactBox(contact).setVisible(True)
                 else:
-                    self.contacts.getContactBox(contact).setVisible(False)
+                    self.contacts.updateContactBox(contact).setVisible(False)
 
     def __close(self):
         """Remove the widget from parent or close the popup."""