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:
parent
28d0a1b9d2
commit
0f11b1be36
@ -176,6 +176,7 @@ remove_user(User, Server) ->
|
|||||||
LServer = jid:nameprep(Server),
|
LServer = jid:nameprep(Server),
|
||||||
Mod = gen_mod:db_mod(LServer, ?MODULE),
|
Mod = gen_mod:db_mod(LServer, ?MODULE),
|
||||||
Mod:remove_user(LUser, LServer),
|
Mod:remove_user(LUser, LServer),
|
||||||
|
cache_tab:dirty_delete(archive_prefs, {LUser, LServer}, fun() -> ok end),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
-spec remove_room(binary(), binary(), binary()) -> ok.
|
-spec remove_room(binary(), binary(), binary()) -> ok.
|
||||||
|
Loading…
Reference in New Issue
Block a user