Fix remove key file

This commit is contained in:
Artem 2022-07-19 00:11:29 +03:00
parent 3e7deab35b
commit 4a6dac9029
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ class FileModel extends Model {
}
removeKeyFile() {
this.db.credentials.keyFileHash = null;
this.db.credentials.setKeyFile(null);
const changed = !!this.oldKeyFileHash;
if (!changed && this.db.credentials.passwordHash === this.oldPasswordHash) {
this.db.meta.keyChanged = this.oldKeyChangeDate;