aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mod_mam.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-06-14 22:03:02 +0200
committerKim Alvefur <zash@zash.se>2022-06-14 22:03:02 +0200
commit9efbb2d015aef48737ebd9dd39b830bbecff002f (patch)
treeb488ce4175ff8b77aa4b1f194681a1d074637d61 /plugins/mod_mam/mod_mam.lua
parent529d711bf1ab3844aa1f4485206b97b669a4a985 (diff)
downloadprosody-9efbb2d015aef48737ebd9dd39b830bbecff002f.tar.gz
prosody-9efbb2d015aef48737ebd9dd39b830bbecff002f.zip
mod_mam: Clarify comment (thanks chili-b)
This was slightly inaccurate since 6e1af07921d1 because the conditions are more complicated now.
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r--plugins/mod_mam/mod_mam.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index 50095e2f..229cdfb3 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -53,8 +53,12 @@ if not archive.find then
end
local use_total = module:get_option_boolean("mam_include_total", true);
-function schedule_cleanup()
- -- replaced later if cleanup is enabled
+function schedule_cleanup(_username, _date)
+ -- Called to make a note of which users have messages on which days, which in
+ -- turn is used to optimize the message expiry routine.
+ --
+ -- This noop is conditionally replaced later depending on retention settings
+ -- and storage backend capabilities.
end
-- Handle prefs.