Comparison

plugins/mod_mam/mod_mam.lua @ 12555:519e6403f455

mod_mam: Clarify comment (thanks chili-b) This was slightly inaccurate since 6e1af07921d1 because the conditions are more complicated now.
author Kim Alvefur <zash@zash.se>
date Tue, 14 Jun 2022 22:03:02 +0200
parent 12307:dcad3a207915
child 12556:706375b75475
comparison
equal deleted inserted replaced
12554:dbbbcf6b805e 12555:519e6403f455
51 error("mod_"..(archive._provided_by or archive.name and "storage_"..archive.name).." does not support archiving\n" 51 error("mod_"..(archive._provided_by or archive.name and "storage_"..archive.name).." does not support archiving\n"
52 .."See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information"); 52 .."See https://prosody.im/doc/storage and https://prosody.im/doc/archiving for more information");
53 end 53 end
54 local use_total = module:get_option_boolean("mam_include_total", true); 54 local use_total = module:get_option_boolean("mam_include_total", true);
55 55
56 function schedule_cleanup() 56 function schedule_cleanup(_username, _date)
57 -- replaced later if cleanup is enabled 57 -- Called to make a note of which users have messages on which days, which in
58 -- turn is used to optimize the message expiry routine.
59 --
60 -- This noop is conditionally replaced later depending on retention settings
61 -- and storage backend capabilities.
58 end 62 end
59 63
60 -- Handle prefs. 64 -- Handle prefs.
61 module:hook("iq/self/"..xmlns_mam..":prefs", function(event) 65 module:hook("iq/self/"..xmlns_mam..":prefs", function(event)
62 local origin, stanza = event.origin, event.stanza; 66 local origin, stanza = event.origin, event.stanza;