Declare MarkAsManuallyVerified action

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

View File

@ -17,5 +17,8 @@
package im.vector.app.features.settings.devices.v2
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()
override fun handle(action: DevicesAction) {
TODO("Not yet implemented")
when(action) {
is DevicesAction.MarkAsManuallyVerified -> handleMarkAsManuallyVerifiedAction()
}
}
private fun handleMarkAsManuallyVerifiedAction() {
// TODO implement when needed
}
}