diff --git a/js/services/authService.js b/js/services/authService.js index 58ad6202..69714205 100644 --- a/js/services/authService.js +++ b/js/services/authService.js @@ -20,6 +20,7 @@ import { persistProfileCacheToStorage as persistProfileCacheState, getProfileCacheEntry as getCachedProfileEntry, setProfileCacheEntry as setCachedProfileEntry, + resetModerationSettings, } from "../state/cache.js"; import getDefaultAuthProvider, { providers as defaultAuthProviders, @@ -742,6 +743,15 @@ export default class AuthService { setCurrentUserNpub(null); setActiveProfilePubkey(null, { persist: true }); + try { + resetModerationSettings({ persist: true }); + } catch (error) { + this.log( + "[AuthService] Failed to reset moderation settings on logout", + error, + ); + } + if (this.userBlocks && typeof this.userBlocks.reset === "function") { try { this.userBlocks.reset();