From 92dc358efcdbe8d2014ebcde754d154848263355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 12 Aug 2023 12:09:21 +0200 Subject: imprv: DiscoInfo: Improve discovery if subject is allowed to be modified --- nbxmpp/structs.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3