Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: permanent unlock not saving unenc data

thecodrrb87c314e66f4
diff --git a/packages/core/api/database.js b/packages/core/api/database.js
index 002436ca1..318cc2b08 100644
--- a/packages/core/api/database.js
+++ b/packages/core/api/database.js
@@ -219,6 +219,7 @@ class Database {
);
if (perm) {
this.notes[noteId].locked = false;
+ this.notes[noteId].content = JSON.parse(decrypted);
await this.storage.write(KEYS.notes, this.notes);
}
return { ...this.notes[noteId], content: JSON.parse(decrypted) };