mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 22:18:46 +03:00
Declare MarkAsManuallyVerified action
This commit is contained in:
parent
e3c41a07e5
commit
4a6a39b3c4
2 changed files with 11 additions and 2 deletions
|
@ -17,5 +17,8 @@
|
||||||
package im.vector.app.features.settings.devices.v2
|
package im.vector.app.features.settings.devices.v2
|
||||||
|
|
||||||
import im.vector.app.core.platform.VectorViewModelAction
|
import im.vector.app.core.platform.VectorViewModelAction
|
||||||
|
import org.matrix.android.sdk.api.session.crypto.model.CryptoDeviceInfo
|
||||||
|
|
||||||
sealed class DevicesAction : VectorViewModelAction
|
sealed class DevicesAction : VectorViewModelAction {
|
||||||
|
data class MarkAsManuallyVerified(val cryptoDeviceInfo: CryptoDeviceInfo) : DevicesAction()
|
||||||
|
}
|
||||||
|
|
|
@ -50,7 +50,13 @@ class DevicesViewModel @AssistedInject constructor(
|
||||||
companion object : MavericksViewModelFactory<DevicesViewModel, DevicesViewState> by hiltMavericksViewModelFactory()
|
companion object : MavericksViewModelFactory<DevicesViewModel, DevicesViewState> by hiltMavericksViewModelFactory()
|
||||||
|
|
||||||
override fun handle(action: DevicesAction) {
|
override fun handle(action: DevicesAction) {
|
||||||
TODO("Not yet implemented")
|
when(action) {
|
||||||
|
is DevicesAction.MarkAsManuallyVerified -> handleMarkAsManuallyVerifiedAction()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun handleMarkAsManuallyVerifiedAction() {
|
||||||
|
// TODO implement when needed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue