mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 18:08:13 +08:00
new note is in decrypted state even if protected, fixes #2291
This commit is contained in:
parent
35fc4ba9a4
commit
5209583a73
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Note extends AbstractEntity {
|
|||
// ------ Derived attributes ------
|
||||
|
||||
/** @param {boolean} */
|
||||
this.isDecrypted = !this.isProtected;
|
||||
this.isDecrypted = !this.noteId || !this.isProtected;
|
||||
|
||||
this.decrypt();
|
||||
|
||||
|
|
Loading…
Reference in a new issue