Mercurial > libervia-web
comparison src/browser/libervia_main.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 | daa9be94e88f |
children | 1c1dbe03d3c6 |
comparison
equal
deleted
inserted
replaced
576:daa9be94e88f | 577:e1a773a64fb6 |
---|---|
765 self.status_panel.setPresence(show) # pylint: disable=E1103 | 765 self.status_panel.setPresence(show) # pylint: disable=E1103 |
766 if statuses: | 766 if statuses: |
767 self.status_panel.setStatus(statuses.values()[0]) # pylint: disable=E1103 | 767 self.status_panel.setStatus(statuses.values()[0]) # pylint: disable=E1103 |
768 else: | 768 else: |
769 if entity_jid.bare in self.room_list: | 769 if entity_jid.bare in self.room_list: |
770 wid = self.getLiberviaWidget(panels.ChatPanel, {'item': entity_jid}, ignoreOtherTabs=False) | 770 wid = self.getLiberviaWidget(panels.ChatPanel, {'item': entity_jid, 'type_': 'group'}, ignoreOtherTabs=False) |
771 else: | 771 else: |
772 wid = self.contact_panel | 772 wid = self.contact_panel |
773 if show == 'unavailable': # XXX: save some resources as for now we only need 'unavailable' | 773 if show == 'unavailable': # XXX: save some resources as for now we only need 'unavailable' |
774 for plugin in self.plugins.values(): | 774 for plugin in self.plugins.values(): |
775 if hasattr(plugin, 'presenceReceivedTrigger'): | 775 if hasattr(plugin, 'presenceReceivedTrigger'): |
776 plugin.presenceReceivedTrigger(entity_jid, show, priority, statuses) | 776 plugin.presenceReceivedTrigger(entity_jid, show, priority, statuses) |
777 wid.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses) | 777 if wid: |
778 wid.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses) | |
778 | 779 |
779 def _roomJoinedCb(self, room_jid, room_nicks, user_nick): | 780 def _roomJoinedCb(self, room_jid, room_nicks, user_nick): |
780 _target = jid.JID(room_jid) | 781 _target = jid.JID(room_jid) |
781 | 782 |
782 # XXX: _target.node.startwith(...) raises an error "startswith is not a function" | 783 # XXX: _target.node.startwith(...) raises an error "startswith is not a function" |