diff --git a/vector/src/main/java/im/vector/app/features/roommemberprofile/devices/DeviceListBottomSheetViewModel.kt b/vector/src/main/java/im/vector/app/features/roommemberprofile/devices/DeviceListBottomSheetViewModel.kt index 92687e1a37..e6f01ed144 100644 --- a/vector/src/main/java/im/vector/app/features/roommemberprofile/devices/DeviceListBottomSheetViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/roommemberprofile/devices/DeviceListBottomSheetViewModel.kt @@ -42,7 +42,6 @@ data class DeviceListViewState( val userId: String, val allowDeviceAction: Boolean, val userItem: MatrixItem? = null, - val isMine: Boolean = false, val memberCrossSigningKey: MXCrossSigningInfo? = null, val cryptoDevices: Async> = Loading(), val selectedDevice: CryptoDeviceInfo? = null @@ -70,14 +69,12 @@ class DeviceListBottomSheetViewModel @AssistedInject constructor( userId = userId, allowDeviceAction = args.allowDeviceAction, userItem = it, - isMine = userId == session.myUserId ) } ?: return super.initialState(viewModelContext) } } init { - session.flow().liveUserCryptoDevices(initialState.userId) .execute { copy(cryptoDevices = it).also {