Diff

plugins/mod_mam/mod_mam.lua @ 10525:9cf7d9761ca2 0.11

mod_mam: Schedule cleanup again if unable to delete messages
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:27:44 +0100
parent 10524:7c29a6e652d2
child 10563:e8db377a2983
child 10567:3df479098696
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Tue Dec 24 00:27:41 2019 +0100
+++ b/plugins/mod_mam/mod_mam.lua	Tue Dec 24 00:27:44 2019 +0100
@@ -388,6 +388,7 @@
 				num_users = num_users + 1;
 				sum = sum + (tonumber(ok) or 0);
 			else
+				cleanup_map:set(cut_off, user, true);
 				module:log("error", "Could not delete messages for user '%s': %s", user, err);
 			end
 		end