mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
feat: realtime & auto sync for all users (#944)
This commit is contained in:
@@ -242,7 +242,12 @@ export default class Vault {
|
||||
});
|
||||
}
|
||||
|
||||
async decryptContent(encryptedContent, password) {
|
||||
async decryptContent(encryptedContent, password = null) {
|
||||
if (!password) {
|
||||
await this._check();
|
||||
password = this._password;
|
||||
}
|
||||
|
||||
let decryptedContent = await this._storage.decrypt(
|
||||
{ password },
|
||||
encryptedContent.data
|
||||
|
||||
Reference in New Issue
Block a user