fix: delete autolock pref on passcode remove

This commit is contained in:
Mo Bitar
2020-09-24 15:52:03 -05:00
parent 94a82412bd
commit 6f9b669523
2 changed files with 15 additions and 1 deletions

View File

@@ -549,7 +549,9 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
confirmButtonStyle: 'danger'
})) {
await preventRefreshing(STRING_CONFIRM_APP_QUIT_DURING_PASSCODE_REMOVAL, async () => {
await this.application.getAutolockService().deleteAutolockPreference();
await this.application!.removePasscode();
await this.reloadAutoLockInterval();
});
this.refreshEncryptionStatus();
}