Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): read-only handling of recent notes

FliegendeWurst6f5304467a34
diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts
index c958512c6e..074e03e4c8 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) {