feat: realtime & auto sync for all users (#944)

This commit is contained in:
Ammar Ahmed
2022-09-20 18:33:55 +05:00
committed by GitHub
parent 0774326941
commit e5e965415d
24 changed files with 337 additions and 88 deletions

View File

@@ -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