From 0f11b1be364e43189e06eeb577750e7d1b0e9fef Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 24 Nov 2016 18:40:20 +0300 Subject: [PATCH] Don't forget to erase cache on user removal --- src/mod_mam.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 0433dee79..edb0d1485 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -176,6 +176,7 @@ remove_user(User, Server) -> LServer = jid:nameprep(Server), Mod = gen_mod:db_mod(LServer, ?MODULE), Mod:remove_user(LUser, LServer), + cache_tab:dirty_delete(archive_prefs, {LUser, LServer}, fun() -> ok end), ok. -spec remove_room(binary(), binary(), binary()) -> ok. -- 2.40.0