aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-19 18:29:08 +0100
committerKim Alvefur <zash@zash.se>2016-11-19 18:29:08 +0100
commit7b3cc17f2e2040286dea2b981beaabfc7fab169d (patch)
tree214b3779ad28a9eddb17f833ba0dfcd868011e54 /plugins/mod_mam/mod_mam.lua
parent498600dcba7ab38d45ff17bdaba63ea7a999d75c (diff)
downloadprosody-7b3cc17f2e2040286dea2b981beaabfc7fab169d.tar.gz
prosody-7b3cc17f2e2040286dea2b981beaabfc7fab169d.zip
mod_mam: Add XEP-0359 tag
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua1
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