# HG changeset patch # User Kim Alvefur # Date 1504438108 -7200 # Node ID f2096c03428b26a6227c715891e939e8c2f68554 # Parent b13d07613b80ef1ef89a4ea4a05906685271a5ca mod_mam: Fix traceback due to borked transplant from 0.10 diff -r b13d07613b80 -r f2096c03428b mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Sun Sep 03 12:43:24 2017 +0200 +++ b/mod_mam/mod_mam.lua Sun Sep 03 13:28:28 2017 +0200 @@ -317,7 +317,7 @@ clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); event.stanza = clone_for_other_handlers; if cleanup then cleanup[store_user] = true; end - module:fire_event("archive-message-added", { origin = origin, stanza = clone_for_storage, for_user = store_user, id = id }); + module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id }); end else log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag());