Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-08-12 13:09:21 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-08-12 13:09:31 +0300
commit92dc358efcdbe8d2014ebcde754d154848263355 (patch)
treeb5cb19b798e1a42f94bd81a2fbfd75db9d7cded1
parent987d9514867930a735009a6e2335178e6cb05749 (diff)
imprv: DiscoInfo: Improve discovery if subject is allowed to be modified
-rw-r--r--nbxmpp/structs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index a673932..5c50911 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -566,7 +566,9 @@ class DiscoInfo(NamedTuple):
def muc_subjectmod(self) -> Optional[Any]:
# muc#roominfo_changesubject stems from a wrong example in the MUC XEP
# Ejabberd and Prosody use this value
+ # muc#roomconfig_changesubject is also used by Prosody
return (self.get_field_value(Namespace.MUC_INFO, 'muc#roominfo_subjectmod') or
+ self.get_field_value(Namespace.MUC_INFO, 'muc#roomconfig_changesubject') or
self.get_field_value(Namespace.MUC_INFO, 'muc#roominfo_changesubject'))
@property