Fix nativeMessaging background by replacing removed state service usage with account service for user id retrieval (#10501)
This commit is contained in:
parent
5ce5f836e2
commit
43da67ee51
|
@ -337,7 +337,8 @@ export class NativeMessagingBackground {
|
|||
|
||||
// Verify key is correct by attempting to decrypt a secret
|
||||
try {
|
||||
await this.cryptoService.getFingerprint(await this.stateService.getUserId());
|
||||
const userId = (await firstValueFrom(this.accountService.activeAccount$))?.id;
|
||||
await this.cryptoService.getFingerprint(userId);
|
||||
} catch (e) {
|
||||
this.logService.error("Unable to verify key: " + e);
|
||||
await this.cryptoService.clearKeys();
|
||||
|
|
Loading…
Reference in New Issue