From 19a6f61b44dad8bde66b8b781f01c2cb860a94f0 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 16 Mar 2012 22:01:56 -0700 Subject: [PATCH] Fix requiring receipt request messages to have ID values. --- sleekxmpp/plugins/xep_0184/stanza.py | 2 ++ 1 file changed, 2 insertions(+) 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()