# HG changeset patch # User Kim Alvefur # Date 1504435404 -7200 # Node ID b13d07613b80ef1ef89a4ea4a05906685271a5ca # Parent 7c2416a1eb94e58f499828065fa6a5bf1025fe2e mod_mam: Clone stanza before stripping stanza id after carbons diff -r 7c2416a1eb94 -r b13d07613b80 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Sun Sep 03 00:35:31 2017 +0200 +++ b/mod_mam/mod_mam.lua Sun Sep 03 12:43:24 2017 +0200 @@ -330,6 +330,7 @@ local function strip_stanza_id(event) local strip_by = jid_bare(event.origin.full_jid); + event.stanza = st.clone(event.stanza); event.stanza:maptags(function(tag) if not ( tag.attr.xmlns == xmlns_st_id and tag.attr.by == strip_by ) then return tag;