summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0184/stanza.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-16 22:01:56 -0700
committerLance Stout <lancestout@gmail.com>2012-03-16 22:01:56 -0700
commit19a6f61b44dad8bde66b8b781f01c2cb860a94f0 (patch)
tree7c96f5f3bf192735db341dfb460ff310d3f60b93 /sleekxmpp/plugins/xep_0184/stanza.py
parent58e0f1e6c3a8dd6eea19e05aa9367a3dd2ceca70 (diff)
downloadslixmpp-19a6f61b44dad8bde66b8b781f01c2cb860a94f0.tar.gz
slixmpp-19a6f61b44dad8bde66b8b781f01c2cb860a94f0.tar.bz2
slixmpp-19a6f61b44dad8bde66b8b781f01c2cb860a94f0.tar.xz
slixmpp-19a6f61b44dad8bde66b8b781f01c2cb860a94f0.zip
Fix requiring receipt request messages to have ID values.
Diffstat (limited to 'sleekxmpp/plugins/xep_0184/stanza.py')
-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()