Diff

plugins/mod_muc_mam.lua @ 10562:670afc079f68 0.11

mod_muc_mam: Schedule cleanup again on failure
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:26:40 +0100
parent 10561:29b3eb95c268
child 10563:e8db377a2983
child 10566:f4d12b1434c6
line wrap: on
line diff
--- a/plugins/mod_muc_mam.lua	Tue Dec 24 00:26:37 2019 +0100
+++ b/plugins/mod_muc_mam.lua	Tue Dec 24 00:26:40 2019 +0100
@@ -460,6 +460,7 @@
 				num_rooms = num_rooms + 1;
 				sum = sum + (tonumber(ok) or 0);
 			else
+				cleanup_map:set(cut_off, room, true);
 				module:log("error", "Could not delete messages for room '%s': %s", room, err);
 			end
 		end