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
This commit is contained in:
mathieui 2021-02-17 19:42:58 +01:00
commit 3453ebf0c5

View file

@ -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)