From 2eeaf4d80c7c0cef17701914382911665d6fb621 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 25 Apr 2012 13:55:46 -0700 Subject: [PATCH] Use provided stanza ID. --- sleekxmpp/xmlstream/stanzabase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 2f6416d5..8a4f07ae 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -1176,6 +1176,8 @@ class StanzaBase(ElementBase): self['to'] = sto if sfrom is not None: self['from'] = sfrom + if sid is not None: + self['id'] = sid self.tag = "{%s}%s" % (self.namespace, self.name) def set_type(self, value):