mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
new note is in decrypted state even if protected, fixes #2291
This commit is contained in:
@@ -67,7 +67,7 @@ class Note extends AbstractEntity {
|
|||||||
// ------ Derived attributes ------
|
// ------ Derived attributes ------
|
||||||
|
|
||||||
/** @param {boolean} */
|
/** @param {boolean} */
|
||||||
this.isDecrypted = !this.isProtected;
|
this.isDecrypted = !this.noteId || !this.isProtected;
|
||||||
|
|
||||||
this.decrypt();
|
this.decrypt();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user