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
new note is in decrypted state even if protected, fixes #2291
zadam5209583a7367
diff --git a/src/becca/entities/note.js b/src/becca/entities/note.jsindex de46123c05..54430bdab3 100644--- a/src/becca/entities/note.js+++ b/src/becca/entities/note.js@@ -67,7 +67,7 @@ class Note extends AbstractEntity {// ------ Derived attributes ------/** @param {boolean} */- this.isDecrypted = !this.isProtected;+ this.isDecrypted = !this.noteId || !this.isProtected;this.decrypt();