Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
92dc358e by Philipp Hörist at 2023-08-12T12:09:31+02:00
imprv: DiscoInfo: Improve discovery if subject is allowed to be modified

- - - - -


1 changed file:

- nbxmpp/structs.py


Changes:

=====================================
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



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/92dc358efcdbe8d2014ebcde754d154848263355

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/92dc358efcdbe8d2014ebcde754d154848263355
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to