diff options
author | mathieui <mathieui@mathieui.net> | 2021-02-17 19:42:58 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-02-17 19:42:58 +0100 |
commit | 3453ebf0c5bc5d6f9958da0ee6852271aee41ff2 (patch) | |
tree | 4dae9fa1944e0e533dc2a501531aee253340b1a3 | |
parent | 5d7918b122bc95d0fa1117e5fea41e742a4a1f76 (diff) | |
parent | 699a2620b7e8b87e8f1391e74c5267e777e97e2a (diff) | |
download | slixmpp-3453ebf0c5bc5d6f9958da0ee6852271aee41ff2.tar.gz slixmpp-3453ebf0c5bc5d6f9958da0ee6852271aee41ff2.tar.bz2 slixmpp-3453ebf0c5bc5d6f9958da0ee6852271aee41ff2.tar.xz slixmpp-3453ebf0c5bc5d6f9958da0ee6852271aee41ff2.zip |
Merge branch 'fix-origin-id-no-stream' into 'master'
stanzabase: Fix a bug when setting id for streamless messages
See merge request poezio/slixmpp!132
-rw-r--r-- | slixmpp/stanza/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/stanza/message.py b/slixmpp/stanza/message.py index 5a3432a6..7b033e37 100644 --- a/slixmpp/stanza/message.py +++ b/slixmpp/stanza/message.py @@ -93,7 +93,7 @@ class Message(RootStanza): self.xml.attrib['id'] = value - if not self.stream.use_origin_id: + if self.stream and not self.stream.use_origin_id: return None sub = self.xml.find(ORIGIN_NAME) |