aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-24 00:27:44 +0100
committerKim Alvefur <zash@zash.se>2019-12-24 00:27:44 +0100
commita13a26a43526e5a596c0a6e5a74d8ab3c1803043 (patch)
tree78a2672e6d49445d1119eb8966b4cb7a0d3a5798 /plugins/mod_mam
parentfa9d8957e3d4568f23616fd7dc8222bd51340081 (diff)
downloadprosody-a13a26a43526e5a596c0a6e5a74d8ab3c1803043.tar.gz
prosody-a13a26a43526e5a596c0a6e5a74d8ab3c1803043.zip
mod_mam: Schedule cleanup again if unable to delete messages
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r--plugins/mod_mam/mod_mam.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index df5d925a..fd319486 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -388,6 +388,7 @@ if cleanup_after ~= "never" then
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