Merge pull request #2030 from dissipative/fix-remove-key-file

Fixes an issue with being unable to remove an assigned keyfile once it has been set for a vault.

Closes #1924
This commit is contained in:
Aetherinox 2024-04-05 13:13:49 -07:00 committed by GitHub
commit 952b640cab
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;