Software /
code /
prosody
Changeset
8149:1dc6efcc420a
mod_mam: Attach stanza-id to original stanza (fixes #917)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 May 2017 14:58:56 +0200 |
parents | 8147:d44c6582059d |
children | 8150:4720f5ec4171 8154:6300394bb713 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Thu May 18 01:59:55 2017 +0200 +++ b/plugins/mod_mam/mod_mam.lua Sat May 20 14:58:56 2017 +0200 @@ -290,7 +290,7 @@ local ok = archive:append(store_user, nil, stanza, time_now(), with); if ok then local id = ok; - stanza:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); + event.stanza:tag("stanza-id", { xmlns = xmlns_st_id, 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