fix(web): reset search history after logout (#17534)

fix(web): reset search suggestions after logout
This commit is contained in:
Ben 2025-04-10 16:34:45 -04:00 committed by GitHub
parent 75c83cb704
commit 92f0973a46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 41 additions and 28 deletions

View file

@ -3,6 +3,7 @@ import { goto } from '$app/navigation';
import { foldersStore } from '$lib/stores/folders.svelte';
import { memoryStore } from '$lib/stores/memory.store.svelte';
import { purchaseStore } from '$lib/stores/purchase.store';
import { searchStore } from '$lib/stores/search.svelte';
import { preferences as preferences$, resetSavedUser, user as user$ } from '$lib/stores/user.store';
import { resetUserInteraction, userInteraction } from '$lib/stores/user.svelte';
import { getAboutInfo, getMyPreferences, getMyUser, getStorage } from '@immich/sdk';
@ -103,5 +104,6 @@ export const handleLogout = async (redirectUri: string) => {
resetUserInteraction();
foldersStore.clearCache();
memoryStore.clearCache();
searchStore.clearCache();
}
};