Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsindex 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 secondsif (resolvedNotePath && resolvedNotePath === this.notePath) {