plugin XEP-0085, quick_frontends, primitivus: chat states are working again
This commit is contained in:
parent
3a89365ac2
commit
cc160e03d7
1 changed files with 59 additions and 24 deletions
|
|
@ -96,7 +96,7 @@ class XEP_0085(object):
|
|||
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 @@ class XEP_0085(object):
|
|||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue