mod_storage_memory: Fix saving of remaining items during deletion
Backport of 368b092bf4bf from prosody trunk
--- a/mod_storage_memory/mod_storage_memory.lua Sun Oct 21 15:19:58 2018 +0100
+++ b/mod_storage_memory/mod_storage_memory.lua Sun Oct 21 17:49:39 2018 +0200
@@ -128,7 +128,7 @@
i = old[i];
t = i.when;
if not(qstart >= t and qend <= t and (not qwith or i.with == qwith)) then
- self:append(username, i.key, i.value, t, i.with);
+ self:append(username, i.key, i.value(), t, i.with);
end
end
if #new == 0 then