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
@ -93,7 +93,7 @@ class Message(RootStanza):
|
|||||||
|
|
||||||
self.xml.attrib['id'] = value
|
self.xml.attrib['id'] = value
|
||||||
|
|
||||||
if not self.stream.use_origin_id:
|
if self.stream and not self.stream.use_origin_id:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
sub = self.xml.find(ORIGIN_NAME)
|
sub = self.xml.find(ORIGIN_NAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user