]> granicus.if.org Git - ejabberd/commitdiff
Don't forget to erase cache on user removal
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 24 Nov 2016 15:40:20 +0000 (18:40 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 24 Nov 2016 15:40:20 +0000 (18:40 +0300)
src/mod_mam.erl

index 0433dee790155c69aac0a71b7555548319c6b6ea..edb0d148529360f51593ec348a3da96a6f0f851e 100644 (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.