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 deleting note from task manager, closes #3239
zadam7d732eb73bd5
diff --git a/db/TODO.txt b/db/TODO.txtindex 727557383d..db29e44f33 100644--- a/db/TODO.txt+++ b/db/TODO.txt@@ -1,11 +1,6 @@-- drop branches.utcDateCreated - not used for anything-- drop options.utcDateCreated - not used for anything- isDeleted = 0 by default- rename openTabs to openNoteContexts-- migrate black theme to dark theme- unify readOnly handling to a single attribute:* readOnly - like now* readOnly=auto - like without readOnly (used to override inherited readOnly)* readOnly=never - like autoReadOnlyDisabled-- remove focusOnAttributesKeyboardShortcut-- rename white theme to "light" theme (it's not completely white and matches well to dark theme)diff --git a/src/becca/entities/branch.js b/src/becca/entities/branch.jsindex 44ba60cf35..af740bb1dd 100644--- a/src/becca/entities/branch.js+++ b/src/becca/entities/branch.js@@ -170,6 +170,10 @@ class Branch extends AbstractEntity {log.info("Deleting note " + note.noteId);+ // marking note as deleted as a signal to event handlers that the note is being deleted+ // (isDeleted is being checked against becca)+ delete this.becca.notes[note.noteId];+for (const attribute of note.getOwnedAttributes()) {attribute.markAsDeleted(deleteId);}