mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Reset caches on logout
This commit is contained in:
1 parent
3b3e7c757c
commit
1642b787ec
5 files changed
+44
No files matched your search
@@ -836,6 +836,14 @@ export default class AuthService {
|
||||
setCurrentUserNpub(null);
|
||||
setActiveProfilePubkey(null, { persist: true });
|
||||
|
||||
try {
|
||||
if (profileCache && typeof profileCache.reset === "function") {
|
||||
profileCache.reset();
|
||||
}
|
||||
} catch (error) {
|
||||
this.log("[AuthService] profileCache.reset threw", error);
|
||||
}
|
||||
|
||||
try {
|
||||
resetModerationSettings({ persist: true });
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user