# HG changeset patch # User Kim Alvefur # Date 1372545637 -7200 # Node ID 158680bff642feff9608b043a0054b18ab86af2f # Parent 959e38a41a2e89fed13520b0ac7255c2f79e88f2 mod_mam: Stamp on incoming stanzas after archiving them diff -r 959e38a41a2e -r 158680bff642 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Sun Jun 30 00:40:04 2013 +0200 +++ b/mod_mam/mod_mam.lua Sun Jun 30 00:40:37 2013 +0200 @@ -311,11 +311,9 @@ resource = target_resource, stanza = st.preserialize(stanza) }); - --[[ This was dropped from the spec - if ok then - stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }):up(); + if ok and not c2s then + stanza:tag("archived", { xmlns = xmlns_mam, by = jid_bare(orig_to), id = id }):up(); end - --]] else module:log("debug", "Not archiving stanza: %s", stanza:top_tag()); end