mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 11:26:01 +03:00
Remove unused param
This commit is contained in:
parent
626e3dbd10
commit
8fc35ef792
1 changed files with 0 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue