Software /
code /
prosody
Changeset
7846:22275bc5744a
mod_mam: Add XEP-0359 tag
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Nov 2016 18:29:08 +0100 |
parents | 7845:eeb22f912577 |
children | 7847:c430932b8113 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Sat Nov 19 18:28:59 2016 +0100 +++ b/plugins/mod_mam/mod_mam.lua Sat Nov 19 18:29:08 2016 +0100 @@ -272,6 +272,7 @@ -- 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