mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 21:38:28 +02:00
fix: reset memories on logout (#17405)
This commit is contained in:
parent
7b6a4be30c
commit
a3c3f9cfcb
2 changed files with 7 additions and 0 deletions
web/src/lib/stores
|
@ -110,6 +110,11 @@ class MemoryStoreSvelte {
|
|||
await this.loadAllMemories();
|
||||
}
|
||||
|
||||
clearCache() {
|
||||
this.initialized = false;
|
||||
this.memories = [];
|
||||
}
|
||||
|
||||
private async loadAllMemories() {
|
||||
const memories = await searchMemories({ $for: asLocalTimeISO(DateTime.now()) });
|
||||
this.memories = memories.filter((memory) => memory.assets.length > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue