diff options
author | Kim Alvefur <zash@zash.se> | 2017-05-20 15:00:50 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-05-20 15:00:50 +0200 |
commit | 31449a33114f4c183969bfca6e7572ac481bc35a (patch) | |
tree | a9f889946fe0b378627047ddcff3fe5e45fcc1ff /plugins/mod_mam/mod_mam.lua | |
parent | 5fab418c7297225df592a6118ea7054e05a3268f (diff) | |
parent | 6c2de6971756e87dc7ce5165182128b4dbc05f2d (diff) | |
download | prosody-31449a33114f4c183969bfca6e7572ac481bc35a.tar.gz prosody-31449a33114f4c183969bfca6e7572ac481bc35a.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 4235fd59..b40b8a9a 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -290,7 +290,7 @@ local function message_handler(event, c2s) 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 |