Commit 36a316ae authored by Philipp Hörist's avatar Philipp Hörist

Add None check for stanza_id

nbxmpp makes sure that 'by' and 'id' are set if stanza_id is not None
parent c1687d75
Pipeline #3998 passed with stages
in 2 minutes and 35 seconds
......@@ -313,8 +313,7 @@ class Message(BaseModule):
# Deduplicate self message with message-id
return None,
if is None:
# We can not verify who sent this stanza-id, ignore it.
if properties.stanza_id is None:
return None, None
if properties.type.is_groupchat:
Markdown is supported
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