Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 59b6c18b by Philipp Hörist at 2019-08-05T15:30:25Z Message: Only set stanza_id data if it is valid
- - - - -
1 changed file:
- nbxmpp/modules/message.py
Changes:
===================================== nbxmpp/modules/message.py ===================================== @@ -46,7 +46,8 @@ class BaseMessage:
# Stanza ID 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: properties.error = ErrorProperties(stanza)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/59b6c18b5d9535e09204a865712...