mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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
|
|
@ -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