summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins')
-rw-r--r--sleekxmpp/plugins/xep_0184/stanza.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0184/stanza.py b/sleekxmpp/plugins/xep_0184/stanza.py
index d1654ef8..a50f6762 100644
--- a/sleekxmpp/plugins/xep_0184/stanza.py
+++ b/sleekxmpp/plugins/xep_0184/stanza.py
@@ -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()