summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-09 20:40:30 +0200
committermathieui <mathieui@mathieui.net>2021-04-09 20:40:30 +0200
commitfcf666e3cb2f2656020a73e94df332f996924511 (patch)
tree35d71a04ec7d68e11e5ce0f5df29272dfb018687 /slixmpp/xmlstream
parent7ddcc3428fbc48814da301ce7cba9b1f855a0fa9 (diff)
downloadslixmpp-fcf666e3cb2f2656020a73e94df332f996924511.tar.gz
slixmpp-fcf666e3cb2f2656020a73e94df332f996924511.tar.bz2
slixmpp-fcf666e3cb2f2656020a73e94df332f996924511.tar.xz
slixmpp-fcf666e3cb2f2656020a73e94df332f996924511.zip
Fix #3441: Do not assign ID to inbound stanzas
Diffstat (limited to 'slixmpp/xmlstream')
-rw-r--r--slixmpp/xmlstream/stanzabase.py2
-rw-r--r--slixmpp/xmlstream/xmlstream.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/xmlstream/stanzabase.py b/slixmpp/xmlstream/stanzabase.py
index 0fa5ef27..207ae588 100644
--- a/slixmpp/xmlstream/stanzabase.py
+++ b/slixmpp/xmlstream/stanzabase.py
@@ -1381,7 +1381,7 @@ class StanzaBase(ElementBase):
namespace = 'jabber:client'
def __init__(self, stream=None, xml=None, stype=None,
- sto=None, sfrom=None, sid=None, parent=None):
+ sto=None, sfrom=None, sid=None, parent=None, recv=False):
self.stream = stream
if stream is not None:
self.namespace = stream.default_ns
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index 02f4598c..d9edc5b2 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -1157,7 +1157,7 @@ class XMLStream(asyncio.BaseProtocol):
xml.tag == stanza_class.tag_name():
stanza_type = stanza_class
break
- stanza = stanza_type(self, xml)
+ stanza = stanza_type(self, xml, recv=True)
if stanza['lang'] is None and self.peer_default_lang:
stanza['lang'] = self.peer_default_lang
return stanza