From fa06bba0b7049ed6a0a6ed6264d9f8eab226d5db Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 14 Nov 2025 11:54:02 +0100 Subject: [PATCH] Clear pinProtectedUserKeyEnvelopeValue on user removal --- .../Core/Platform/Services/TestHelpers/MockStateService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/BitwardenShared/Core/Platform/Services/TestHelpers/MockStateService.swift b/BitwardenShared/Core/Platform/Services/TestHelpers/MockStateService.swift index 734e5fe96e..a7b9b63d66 100644 --- a/BitwardenShared/Core/Platform/Services/TestHelpers/MockStateService.swift +++ b/BitwardenShared/Core/Platform/Services/TestHelpers/MockStateService.swift @@ -126,6 +126,7 @@ class MockStateService: StateService, ActiveAccountStateProvider { // swiftlint: accountVolatileData.removeValue(forKey: userId) pinProtectedUserKeyValue[userId] = nil encryptedPinByUserId[userId] = nil + pinProtectedUserKeyEnvelopeValue[userId] = nil } func updateProfile(from response: ProfileResponseModel, userId: String) async {