25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Don't forget to erase cache on user removal

This commit is contained in:
Evgeniy Khramtsov 2016-11-24 18:40:20 +03:00
parent 28d0a1b9d2
commit 0f11b1be36

View File

@ -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.