Mercurial > libervia-backend
diff sat/memory/memory.py @ 2994:94708a7d3ecf
core, plugin XEP-0045: fixed message type autodetection + ENTITY_TYPE_MUC constant:
an old hardcoded value was used in several places to detect if an entity is a MUC, but this
value was not valid anymore. This has been fixed, and ENTITY_TYPE_MUC constant is now used
instead. This fixes message type autodetection for "groupchat" messages.
fixes 300
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 09 Jul 2019 09:06:45 +0200 |
parents | c0f6fd75af5f |
children | ab2696e34d29 |
line wrap: on
line diff
--- a/sat/memory/memory.py Mon Jul 08 19:11:29 2019 +0200 +++ b/sat/memory/memory.py Tue Jul 09 09:06:45 2019 +0200 @@ -849,11 +849,12 @@ """Set a misc data for an entity If key was registered with setSignalOnUpdate, a signal will be sent to frontends - @param entity_jid: JID of the entity, C.ENTITY_ALL_RESOURCES for all resources of all entities, - C.ENTITY_ALL for all entities (all resources + bare jids) - @param key: key to set (eg: "type") - @param value: value for this key (eg: "chatroom") - @param silent(bool): if True, doesn't send signal to frontend, even if there is a signal flag (see setSignalOnUpdate) + @param entity_jid: JID of the entity, C.ENTITY_ALL_RESOURCES for all resources of + all entities, C.ENTITY_ALL for all entities (all resources + bare jids) + @param key: key to set (eg: C.ENTITY_TYPE) + @param value: value for this key (eg: C.ENTITY_TYPE_MUC) + @param silent(bool): if True, doesn't send signal to frontend, even if there is a + signal flag (see setSignalOnUpdate) @param profile_key: %(doc_profile_key)s """ client = self.host.getClient(profile_key) @@ -886,7 +887,7 @@ @param entity_jid: JID of the entity, C.ENTITY_ALL_RESOURCES for all resources of all entities, C.ENTITY_ALL for all entities (all resources + bare jids) - @param key: key to delete (eg: "type") + @param key: key to delete (eg: C.ENTITY_TYPE) @param profile_key: %(doc_profile_key)s @raise exceptions.UnknownEntityError: if entity is not in cache