Software /
code /
prosody
Changeset
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 |
parents | 8205:0a3060592db8 |
children | 8207:8ea0484871e8 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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;