From bd90a18ab9596329f74619b93a564e3cfa5df3ae Mon Sep 17 00:00:00 2001 From: yamilmedina Date: Thu, 9 Jan 2025 18:07:17 +0100 Subject: [PATCH] chore: fix test --- .../wire/android/ui/settings/devices/DeviceDetailsViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/settings/devices/DeviceDetailsViewModel.kt b/app/src/main/kotlin/com/wire/android/ui/settings/devices/DeviceDetailsViewModel.kt index 49e9db9ec1..8f4930cea4 100644 --- a/app/src/main/kotlin/com/wire/android/ui/settings/devices/DeviceDetailsViewModel.kt +++ b/app/src/main/kotlin/com/wire/android/ui/settings/devices/DeviceDetailsViewModel.kt @@ -174,7 +174,7 @@ class DeviceDetailsViewModel @Inject constructor( device = state.device.updateFromClient(result.client), isCurrentDevice = result.isCurrentClient, removeDeviceDialogState = RemoveDeviceDialogState.Hidden, - canBeRemoved = !result.isCurrentClient && isSelfClient && result.client.type != ClientType.LegalHold, + canBeRemoved = !result.isCurrentClient && isSelfClient && result.client.type == ClientType.Permanent, mlsCipherSuiteSignature = MLSPublicKeyType.from( result.client.mlsPublicKeys?.keys?.firstOrNull().orEmpty() ).let { mapCipherSuiteSignatureToShortName(it) }