Fix requiring receipt request messages to have ID values.
This commit is contained in:
parent
58e0f1e6c3
commit
19a6f61b44
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ class Request(ElementBase):
|
|||
if val:
|
||||
parent = self.parent()
|
||||
parent._set_sub_text("{%s}request" % self.namespace, keep=True)
|
||||
if not parent['id']:
|
||||
parent['id'] = parent.stream.new_id()
|
||||
|
||||
def get_request_receipt(self):
|
||||
parent = self.parent()
|
||||
|
|
Loading…
Reference in a new issue