comparison sat/core/constants.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 d86ecc34516e
children ff5bcb12ae60
comparison
equal deleted inserted replaced
2993:d58dccd9e4b4 2994:94708a7d3ecf
92 PROF_KEY_ALL = "@ALL@" 92 PROF_KEY_ALL = "@ALL@"
93 ENTITY_ALL = "@ALL@" 93 ENTITY_ALL = "@ALL@"
94 ENTITY_ALL_RESOURCES = "@ALL_RESOURCES@" 94 ENTITY_ALL_RESOURCES = "@ALL_RESOURCES@"
95 ENTITY_MAIN_RESOURCE = "@MAIN_RESOURCE@" 95 ENTITY_MAIN_RESOURCE = "@MAIN_RESOURCE@"
96 ENTITY_CAP_HASH = "CAP_HASH" 96 ENTITY_CAP_HASH = "CAP_HASH"
97 ENTITY_TYPE = "TYPE" 97 ENTITY_TYPE = "type"
98 ENTITY_TYPE_MUC = "MUC"
98 99
99 ## Roster jids selection ## 100 ## Roster jids selection ##
100 PUBLIC = "PUBLIC" 101 PUBLIC = "PUBLIC"
101 ALL = ( 102 ALL = (
102 "ALL" 103 "ALL"