Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
2017:d44ac0756c46 | 2018:13f46d9e526f |
---|---|
253 -- Check with the users preferences | 253 -- Check with the users preferences |
254 if shall_store(store_user, with) then | 254 if shall_store(store_user, with) then |
255 module:log("debug", "Archiving stanza: %s", stanza:top_tag()); | 255 module:log("debug", "Archiving stanza: %s", stanza:top_tag()); |
256 | 256 |
257 -- And stash it | 257 -- And stash it |
258 local ok, id = archive:append(store_user, nil, time_now(), with, stanza); | 258 local ok, id = archive:append(store_user, nil, stanza, time_now(), with); |
259 if ok then | 259 if ok then |
260 if cleanup then cleanup[store_user] = true; end | 260 if cleanup then cleanup[store_user] = true; end |
261 module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id }); | 261 module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id }); |
262 end | 262 end |
263 else | 263 else |