aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-11-24 18:40:20 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-11-24 18:40:20 +0300
commit0f11b1be364e43189e06eeb577750e7d1b0e9fef (patch)
treeb26454a2ff5a6faf8a096ac64d3ecb8ef7d20b9c /src
parentMake compatible with rebar3 (diff)
Don't forget to erase cache on user removal
Diffstat (limited to 'src')
-rw-r--r--src/mod_mam.erl1
1 files changed, 1 insertions, 0 deletions
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.