Skip to content

Build your personal knowledge base with Trilium Notes

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.js
index 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();