From 5209583a7367af554d5df97c31ccee229907c277 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 28 Oct 2021 22:02:18 +0200 Subject: [PATCH] new note is in decrypted state even if protected, fixes #2291 --- src/becca/entities/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/becca/entities/note.js b/src/becca/entities/note.js index de46123c0..54430bdab 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();