Fix requesting receipts on a message that has not been bound to a stream.
This commit is contained in:
parent
ab2e43d052
commit
33d01fb694
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ class Request(ElementBase):
|
|||
parent = self.parent()
|
||||
parent._set_sub_text("{%s}request" % self.namespace, keep=True)
|
||||
if not parent['id']:
|
||||
if parent.stream:
|
||||
parent['id'] = parent.stream.new_id()
|
||||
|
||||
def get_request_receipt(self):
|
||||
|
|
Loading…
Reference in a new issue