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/59b6c18b5d9535e09204a865712fc7a7919d792a

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/59b6c18b5d9535e09204a865712fc7a7919d792a
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to