diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-19 18:29:08 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-19 18:29:08 +0100 |
commit | 34cb7607de0569c26dd36cd23cdd46d4e818b517 (patch) | |
tree | 214b3779ad28a9eddb17f833ba0dfcd868011e54 | |
parent | 99ad7ae5e6c1b2ac930bc0ec20cf028051fd9553 (diff) | |
download | prosody-34cb7607de0569c26dd36cd23cdd46d4e818b517.tar.gz prosody-34cb7607de0569c26dd36cd23cdd46d4e818b517.zip |
mod_mam: Add XEP-0359 tag
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index cb7613b8..2bdf85dc 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -272,6 +272,7 @@ local function message_handler(event, c2s) -- And stash it local ok, id = archive:append(store_user, nil, stanza, time_now(), with); if ok then + stanza:tag("stanza-id", { xmlns = "urn:xmpp:sid:0", by = store_user.."@"..host, id = id }):up(); if cleanup then cleanup[store_user] = true; end module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id }); end |