stanzabase: Fix a bug when setting id for streamless messages
This commit is contained in:
parent
5d7918b122
commit
699a2620b7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue