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:
commit
3453ebf0c5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue