From 6f5304467a3496b0d8fbf0ce6ee4d7e2f8285a8d Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Wed, 21 May 2025 18:36:58 +0200 Subject: [PATCH] fix(client): read-only handling of recent notes --- apps/client/src/components/note_context.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts index c958512c6..074e03e4c 100644 --- a/apps/client/src/components/note_context.ts +++ b/apps/client/src/components/note_context.ts @@ -159,6 +159,9 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded"> } saveToRecentNotes(resolvedNotePath: string) { + if (options.is("databaseReadonly")) { + return; + } setTimeout(async () => { // we include the note in the recent list only if the user stayed on the note at least 5 seconds if (resolvedNotePath && resolvedNotePath === this.notePath) {