Software /
code /
prosody
Diff
plugins/mod_mam/mod_mam.lua @ 8206:6de741ada3cd
mod_mam: Clone stanza before stripping stanza id after carbons
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Sep 2017 12:42:25 +0200 |
parent | 8193:bb0118e46c45 |
child | 8207:8ea0484871e8 |
line wrap: on
line diff
--- 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;