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 | 7b3cc17f2e2040286dea2b981beaabfc7fab169d (patch) | |
tree | 214b3779ad28a9eddb17f833ba0dfcd868011e54 | |
parent | 498600dcba7ab38d45ff17bdaba63ea7a999d75c (diff) | |
download | prosody-7b3cc17f2e2040286dea2b981beaabfc7fab169d.tar.gz prosody-7b3cc17f2e2040286dea2b981beaabfc7fab169d.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 |