Changeset

2762:f2096c03428b

mod_mam: Fix traceback due to borked transplant from 0.10
author Kim Alvefur <zash@zash.se>
date Sun, 03 Sep 2017 13:28:28 +0200
parents 2761:b13d07613b80
children 2763:a6d19aea9b73
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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());