Diff

mod_mam/mod_mam.lua @ 2018:13f46d9e526f

mod_mam: Fix order of arguments to archive append
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jan 2016 13:49:59 +0100
parent 2017:d44ac0756c46
child 2019:7198c129657c
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Tue Jan 19 13:34:53 2016 +0100
+++ b/mod_mam/mod_mam.lua	Tue Jan 19 13:49:59 2016 +0100
@@ -255,7 +255,7 @@
 		module:log("debug", "Archiving stanza: %s", stanza:top_tag());
 
 		-- And stash it
-		local ok, id = archive:append(store_user, nil, time_now(), with, stanza);
+		local ok, id = archive:append(store_user, nil, stanza, time_now(), with);
 		if ok then
 			if cleanup then cleanup[store_user] = true; end
 			module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id });