Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
e0ceb1d8
Commit
e0ceb1d8
authored
Oct 26, 2022
by
Philipp Hörist
Browse files
fix: MUC: Check correctly for muc subject
The subject can be an empty string
parent
91fb4a7f
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/modules/muc/muc.py
View file @
e0ceb1d8
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment