Software /
code /
prosody-modules
Changeset
1094:158680bff642
mod_mam: Stamp <archived> on incoming stanzas after archiving them
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Jun 2013 00:40:37 +0200 |
parents | 1093:959e38a41a2e |
children | 1095:cb21928bca1d |
files | mod_mam/mod_mam.lua |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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