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

This commit is contained in:
FliegendeWurst 2025-05-21 18:36:58 +02:00
parent 8d21b3a8c5
commit 6f5304467a

View File

@ -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) {