A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: autofix issue where locked note is not encrypted
Abdullah Atta8d7b44466475
diff --git a/packages/core/api/vault.js b/packages/core/api/vault.jsindex cd82621bb..63ce67c28 100644--- a/packages/core/api/vault.js+++ b/packages/core/api/vault.js@@ -251,6 +251,14 @@ export default class Vault {password = this._password;}+ if (encryptedContent.noteId && typeof encryptedContent.data !== "object") {+ await this._db.notes.add({+ id: encryptedContent.noteId,+ locked: false+ });+ return encryptedContent;+ }+let decryptedContent = await this._storage.decrypt({ password },encryptedContent.data