Mercurial > libervia-backend
diff src/plugins/plugin_xep_0085.py @ 2007:19b9d3f8a6c7
plugin XEP-0085, quick_frontends, primitivus: chat states are working again
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 17 Jul 2016 16:47:33 +0200 |
parents | 200cd707a46d |
children | 6a66c8c5a567 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py Fri Jul 15 22:13:09 2016 +0200 +++ b/src/plugins/plugin_xep_0085.py Sun Jul 17 16:47:33 2016 +0200 @@ -96,7 +96,7 @@ def __init__(self, host): log.info(_("Chat State Notifications plugin initialization")) self.host = host - self.map = {} + self.map = {} # FIXME: would be better to use client instead of mapping profile to data # parameter value is retrieved before each use host.memory.updateParams(self.params) @@ -141,7 +141,7 @@ self.host.memory.updateEntityData(entity_jid, ENTITY_KEY, value, profile_key=profile) if not value or value == DELETE_VALUE: # reinit chat state UI for this or these contact(s) - self.host.bridge.chatStateReceived(unicode(entity_jid), "", profile) + self.host.bridge.chatStateReceived(entity_jid.full(), "", profile) def paramUpdateTrigger(self, name, value, category, type_, profile): """Reset all the existing chat state entity data associated with this profile after a parameter modification.