Commit 644ebfe8 authored by mathieui's avatar mathieui

XEP-0313: Only remove origin-id from the mask if it exists

parent e329eadb
......@@ -225,9 +225,10 @@ class XEP_0313(BasePlugin):
iq['mam']['with'] = with_jid
stanza_mask = self.xmpp.Message()
auto_origin = stanza_mask.xml.find('{urn:xmpp:sid:0}origin-id')
if auto_origin is not None:
del stanza_mask['id']
del stanza_mask['lang']
stanza_mask['from'] = jid
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment