Merge pull request #2146 from Aetherinox/master

fix: addresses not being able to unset a keyfile once added to a vault
This commit is contained in:
Aetherinox 2024-04-05 13:44:41 -07:00 committed by GitHub
commit d0d163bf5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;