Trash: empty/restore/delete now reflects immediately instead of needing an app restart (don't serve the volatile trash view from cache)

This commit is contained in:
Yuri Karamian
2026-06-12 17:57:48 +02:00
parent 0a3b7a13e3
commit 2fa9458eab
+3 -1
View File
@@ -310,7 +310,9 @@
}
const key = cacheKey();
const cached = noteCache.get(key);
// Never serve the trash view from cache: emptying / restoring / deleting changes it,
// and a stale cache left it showing cleared items until an app restart. Always re-read.
const cached = $viewMode === 'trash' ? undefined : noteCache.get(key);
if (cached) {
$notes = cached;
return;