Changeset

8150:4720f5ec4171

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 20 May 2017 15:00:50 +0200
parents 8148:472219f85df6 (current diff) 8149:1dc6efcc420a (diff)
children 8153:c22d5680ca68
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Thu May 18 02:01:20 2017 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Sat May 20 15:00:50 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