stanzabase: Fix a bug when setting id for streamless messages

This commit is contained in:
mathieui 2021-02-17 19:29:52 +01:00
parent 5d7918b122
commit 699a2620b7

View file

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