Commit 59b6c18b authored by Philipp Hörist's avatar Philipp Hörist

Message: Only set stanza_id data if it is valid

parent d33c50ad
Pipeline #3997 passed with stages
in 25 seconds
...@@ -46,7 +46,8 @@ class BaseMessage: ...@@ -46,7 +46,8 @@ class BaseMessage:
# Stanza ID # Stanza ID
id_, by = stanza.getStanzaIDAttrs() id_, by = stanza.getStanzaIDAttrs()
properties.stanza_id = StanzaIDData(id=id_, by=by) if id_ is not None and by is not None:
properties.stanza_id = StanzaIDData(id=id_, by=by)
if properties.type.is_error: if properties.type.is_error:
properties.error = ErrorProperties(stanza) properties.error = ErrorProperties(stanza)
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