Mercurial > libervia-web
comparison src/browser/sat_browser/panels.py @ 577:e1a773a64fb6
browser_side: fixes the display of MUC occupants presences
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 14:47:47 +0200 |
parents | b07f0fe2763a |
children | 4a0f2f294ea2 |
comparison
equal
deleted
inserted
replaced
576:daa9be94e88f | 577:e1a773a64fb6 |
---|---|
1357 @param jid_s (str): JID userhost as unicode | 1357 @param jid_s (str): JID userhost as unicode |
1358 """ | 1358 """ |
1359 assert(jid_s == self.target.bare) | 1359 assert(jid_s == self.target.bare) |
1360 if self.type != 'group': | 1360 if self.type != 'group': |
1361 return | 1361 return |
1362 contact.setPresenceStyle(self.occupants_list.getOccupantBox(resource), availability) | 1362 box = self.occupants_list.getOccupantBox(resource) |
1363 if box: | |
1364 contact.setPresenceStyle(box, availability) | |
1363 | 1365 |
1364 | 1366 |
1365 class WebPanel(base_widget.LiberviaWidget): | 1367 class WebPanel(base_widget.LiberviaWidget): |
1366 """ (mini)browser like widget """ | 1368 """ (mini)browser like widget """ |
1367 | 1369 |