Use provided stanza ID.
This commit is contained in:
parent
4d89d26a1c
commit
2eeaf4d80c
@ -1176,6 +1176,8 @@ class StanzaBase(ElementBase):
|
|||||||
self['to'] = sto
|
self['to'] = sto
|
||||||
if sfrom is not None:
|
if sfrom is not None:
|
||||||
self['from'] = sfrom
|
self['from'] = sfrom
|
||||||
|
if sid is not None:
|
||||||
|
self['id'] = sid
|
||||||
self.tag = "{%s}%s" % (self.namespace, self.name)
|
self.tag = "{%s}%s" % (self.namespace, self.name)
|
||||||
|
|
||||||
def set_type(self, value):
|
def set_type(self, value):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user