Mercurial > libervia-web
diff src/browser/sat_browser/panels.py @ 573:12823bcbd05b
browser_side: display MUC occupants presences
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 17 Oct 2014 13:26:33 +0200 |
parents | ee9c7bd266ad |
children | b07f0fe2763a |
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py Fri Oct 17 10:44:06 2014 +0200 +++ b/src/browser/sat_browser/panels.py Fri Oct 17 13:26:33 2014 +0200 @@ -1353,6 +1353,15 @@ else: self.setTitle(self.target.bare) + def setConnected(self, jid_s, resource, availability, priority, statuses): + """Set connection status + @param jid_s (str): JID userhost as unicode + """ + assert(jid_s == self.target.bare) + if self.type != 'group': + return + contact.setPresenceStyle(self.occupants_list.getOccupantBox(resource), availability) + class WebPanel(base_widget.LiberviaWidget): """ (mini)browser like widget """