Skip unlocking unless locked, not only biometric locked (#2350)
This commit is contained in:
parent
6ad3957500
commit
45ed645cea
|
@ -416,7 +416,8 @@ export default class MainBackground {
|
|||
this.appIdService,
|
||||
this.platformUtilsService,
|
||||
this.stateService,
|
||||
this.logService
|
||||
this.logService,
|
||||
this.vaultTimeoutService
|
||||
);
|
||||
this.commandsBackground = new CommandsBackground(
|
||||
this,
|
||||
|
|
|
@ -6,6 +6,7 @@ import { LogService } from "jslib-common/abstractions/log.service";
|
|||
import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
||||
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
||||
import { StateService } from "jslib-common/abstractions/state.service";
|
||||
import { VaultTimeoutService } from "jslib-common/abstractions/vaultTimeout.service";
|
||||
|
||||
import { Utils } from "jslib-common/misc/utils";
|
||||
|
||||
|
@ -74,7 +75,8 @@ export class NativeMessagingBackground {
|
|||
private appIdService: AppIdService,
|
||||
private platformUtilsService: PlatformUtilsService,
|
||||
private stateService: StateService,
|
||||
private logService: LogService
|
||||
private logService: LogService,
|
||||
private vaultTimeoutService: VaultTimeoutService
|
||||
) {
|
||||
this.stateService.setBiometricFingerprintValidated(false);
|
||||
|
||||
|
@ -307,7 +309,7 @@ export class NativeMessagingBackground {
|
|||
}
|
||||
|
||||
// Ignore unlock if already unlocked
|
||||
if (!(await this.stateService.getBiometricLocked())) {
|
||||
if (!(await this.vaultTimeoutService.isLocked())) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue