--- 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 });