# HG changeset patch # User Kim Alvefur # Date 1504435345 -7200 # Node ID 6de741ada3cdd7d61d4538ed6a3c9b86d84501cf # Parent 0a3060592db8d5358a8e1d038bd205a6d288a72f mod_mam: Clone stanza before stripping stanza id after carbons diff -r 0a3060592db8 -r 6de741ada3cd plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Sat Sep 02 10:05:50 2017 +0200 +++ b/plugins/mod_mam/mod_mam.lua Sun Sep 03 12:42:25 2017 +0200 @@ -314,6 +314,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;