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


Commits:
e0ceb1d8 by Philipp Hörist at 2022-10-26T21:30:55+02:00
fix: MUC: Check correctly for muc subject

The subject can be an empty string

- - - - -


1 changed file:

- nbxmpp/modules/muc/muc.py


Changes:

=====================================
nbxmpp/modules/muc/muc.py
=====================================
@@ -228,7 +228,7 @@ class MUC(BaseModule):
                 properties.muc_ofrom = JID.from_string(address.getAttr('jid'))
 
     def _process_message_after_decryption(self, _client, _stanza, properties):
-        if properties.body is None and properties.subject:
+        if properties.body is None and properties.subject is not None:
             properties.muc_subject = MucSubject(
                 text=properties.subject,
                 author=properties.muc_nickname,



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

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


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to