Declare MarkAsManuallyVerified action

This commit is contained in:
Maxime NATUREL 2022-09-05 11:59:12 +02:00
parent e3c41a07e5
commit 4a6a39b3c4
2 changed files with 11 additions and 2 deletions

View file

@ -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()
}

View file

@ -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
} }
} }