Remove unused param

This commit is contained in:
Benoit Marty 2022-10-14 11:25:41 +02:00
parent 626e3dbd10
commit 8fc35ef792
1 changed files with 0 additions and 3 deletions

View File

@ -42,7 +42,6 @@ data class DeviceListViewState(
val userId: String, val userId: String,
val allowDeviceAction: Boolean, val allowDeviceAction: Boolean,
val userItem: MatrixItem? = null, val userItem: MatrixItem? = null,
val isMine: Boolean = false,
val memberCrossSigningKey: MXCrossSigningInfo? = null, val memberCrossSigningKey: MXCrossSigningInfo? = null,
val cryptoDevices: Async<List<CryptoDeviceInfo>> = Loading(), val cryptoDevices: Async<List<CryptoDeviceInfo>> = Loading(),
val selectedDevice: CryptoDeviceInfo? = null val selectedDevice: CryptoDeviceInfo? = null
@ -70,14 +69,12 @@ class DeviceListBottomSheetViewModel @AssistedInject constructor(
userId = userId, userId = userId,
allowDeviceAction = args.allowDeviceAction, allowDeviceAction = args.allowDeviceAction,
userItem = it, userItem = it,
isMine = userId == session.myUserId
) )
} ?: return super.initialState(viewModelContext) } ?: return super.initialState(viewModelContext)
} }
} }
init { init {
session.flow().liveUserCryptoDevices(initialState.userId) session.flow().liveUserCryptoDevices(initialState.userId)
.execute { .execute {
copy(cryptoDevices = it).also { copy(cryptoDevices = it).also {