comparison src/browser/libervia_main.py @ 530:1735aaeac652

plugin OTR: forces FINISHED state if we are in ENCRYPTED state on contact disconnection
author souliane <souliane@mailoo.org>
date Fri, 05 Sep 2014 11:53:55 +0200
parents 69bffcf37ce3
children 19fc2ebc02dd
comparison
equal deleted inserted replaced
529:9bfd71e2b35c 530:1735aaeac652
745 self.status_panel.setPresence(show) # pylint: disable=E1103 745 self.status_panel.setPresence(show) # pylint: disable=E1103
746 if statuses: 746 if statuses:
747 self.status_panel.setStatus(statuses.values()[0]) # pylint: disable=E1103 747 self.status_panel.setStatus(statuses.values()[0]) # pylint: disable=E1103
748 else: 748 else:
749 self.contact_panel.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses) 749 self.contact_panel.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses)
750 if show == 'unavailable': # XXX: save some resources as for now we only need 'unavailable'
751 for plugin in self.plugins.values():
752 if hasattr(plugin, 'presenceReceivedTrigger'):
753 plugin.presenceReceivedTrigger(entity_jid, show, priority, statuses)
750 754
751 def _roomJoinedCb(self, room_jid, room_nicks, user_nick): 755 def _roomJoinedCb(self, room_jid, room_nicks, user_nick):
752 _target = jid.JID(room_jid) 756 _target = jid.JID(room_jid)
753 if _target not in self.room_list: 757 if _target not in self.room_list:
754 self.room_list.append(_target) 758 self.room_list.append(_target)