Changeset

2761:b13d07613b80

mod_mam: Clone stanza before stripping stanza id after carbons
author Kim Alvefur <zash@zash.se>
date Sun, 03 Sep 2017 12:43:24 +0200
parents 2760:7c2416a1eb94
children 2762:f2096c03428b
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;