From 738d9c6a00f898eb94ddf074be84ec1473e60f51 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Fri, 5 Apr 2024 13:43:02 -0700 Subject: [PATCH] fix: addresses not being able to unset a keyfile once added to a vault Refs: #2073 #1924 #2038 #1941 --- app/scripts/models/file-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/models/file-model.js b/app/scripts/models/file-model.js index 5edb7800..eeb33140 100644 --- a/app/scripts/models/file-model.js +++ b/app/scripts/models/file-model.js @@ -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;