Changeset

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
parents 10524:7c29a6e652d2
children 10526:28c8e09fb3cd
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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