Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Keychain migration updates
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Oct 10, 2019
1 parent f6759e7 commit f620507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/keysManager.js
Expand Up @@ -217,6 +217,7 @@ export default class KeysManager {
this.legacy_fingerprint = keys.fingerprint;
this.biometricPrefs.enabled = keys.fingerprint.enabled;
this.biometricPrefs.timing = keys.fingerprint.timing;
delete keys.fingerprint;
}

if(keys.encryptedAccountKeys) {
Expand Down Expand Up @@ -307,7 +308,7 @@ export default class KeysManager {
}

hasAccountKeys() {
return _.keys(this.accountKeys).length > 0;
return this.accountKeys && this.accountKeys.mk != null;
}

isOfflineEncryptionEnabled() {
Expand Down

0 comments on commit f620507

Please sign in to comment.