From f786c8ce93facd805a85cbc68891eb83fb61b60a Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Mon, 12 Feb 2024 11:12:35 -0500 Subject: [PATCH] clear ever had user key for logged out user instead of active (#7911) --- libs/common/src/platform/services/crypto.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/platform/services/crypto.service.ts b/libs/common/src/platform/services/crypto.service.ts index 23f6ba624f5..47c6dd791e9 100644 --- a/libs/common/src/platform/services/crypto.service.ts +++ b/libs/common/src/platform/services/crypto.service.ts @@ -625,7 +625,7 @@ export class CryptoService implements CryptoServiceAbstraction { await this.clearProviderKeys(false, userId); await this.clearKeyPair(false, userId); await this.clearPinKeys(userId); - await this.activeUserEverHadUserKey.update(() => null); + await this.stateProvider.setUserState(USER_EVER_HAD_USER_KEY, null, userId); } async rsaEncrypt(data: Uint8Array, publicKey?: Uint8Array): Promise {