From 9e99670b19a8d81f79438f7e0623736495eb33fb Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 12 Mar 2026 20:53:19 +0200 Subject: [PATCH] fix(collections): displaying note list even if session is not unlocked --- apps/client/src/components/note_context.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts index afcaaf0918..3ca6a2a792 100644 --- a/apps/client/src/components/note_context.ts +++ b/apps/client/src/components/note_context.ts @@ -381,6 +381,10 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded"> // Collections must always display a note list, even if no children. if (note.type === "book") { + if (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable()) { + return false; + } + const viewType = note.getLabelValue("viewType") ?? "grid"; if (!["list", "grid"].includes(viewType)) { return true;