Mercurial > libervia-web
diff browser_side/contact.py @ 271:d868181d0649
browser_side: update contacts in "group and contact chooser" when the a user connect/disconnect
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 19 Nov 2013 21:21:49 +0100 |
parents | a76243c02074 |
children | 0cb9869b42b6 |
line wrap: on
line diff
--- a/browser_side/contact.py Sun Nov 17 22:20:12 2013 +0100 +++ b/browser_side/contact.py Tue Nov 19 21:21:49 2013 +0100 @@ -304,6 +304,10 @@ self.connected[jid][resource] = (availability, priority, statuses) self._contact_list.setState(jid, "availability", availability) + # update the connected contacts chooser live + if hasattr(self.host, "room_contacts_chooser") and self.host.room_contacts_chooser is not None: + self.host.room_contacts_chooser.resetContacts() + def setContactMessageWaiting(self, jid, waiting): """Show an visual indicator that contact has send a message @param jid: jid of the contact