Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/src/browser/libervia_main.py Fri Sep 05 11:41:40 2014 +0200 +++ b/src/browser/libervia_main.py Fri Sep 05 11:53:55 2014 +0200 @@ -747,6 +747,10 @@ self.status_panel.setStatus(statuses.values()[0]) # pylint: disable=E1103 else: self.contact_panel.setConnected(entity_jid.bare, entity_jid.resource, show, priority, statuses) + if show == 'unavailable': # XXX: save some resources as for now we only need 'unavailable' + for plugin in self.plugins.values(): + if hasattr(plugin, 'presenceReceivedTrigger'): + plugin.presenceReceivedTrigger(entity_jid, show, priority, statuses) def _roomJoinedCb(self, room_jid, room_nicks, user_nick): _target = jid.JID(room_jid)