Commit e0ceb1d8 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

fix: MUC: Check correctly for muc subject

The subject can be an empty string
parent 91fb4a7f
......@@ -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(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment