mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
core: autofix issue where locked note is not encrypted
This commit is contained in:
committed by
Abdullah Atta
parent
4a5c5fd3bf
commit
8d7b444664
@@ -251,6 +251,14 @@ export default class Vault {
|
|||||||
password = this._password;
|
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(
|
let decryptedContent = await this._storage.decrypt(
|
||||||
{ password },
|
{ password },
|
||||||
encryptedContent.data
|
encryptedContent.data
|
||||||
|
|||||||
Reference in New Issue
Block a user