Renaming view state

This commit is contained in:
Maxime NATUREL 2022-08-30 15:39:14 +02:00
parent a1102738d0
commit 862edffcee
2 changed files with 6 additions and 6 deletions

View File

@ -27,15 +27,15 @@ import im.vector.app.core.platform.VectorViewModel
import org.matrix.android.sdk.api.session.Session
class SessionOverviewViewModel @AssistedInject constructor(
@Assisted val initialState: SessionOverviewState,
@Assisted val initialState: SessionOverviewViewState,
session: Session,
) : VectorViewModel<SessionOverviewState, SessionOverviewAction, EmptyViewEvents>(initialState) {
) : VectorViewModel<SessionOverviewViewState, SessionOverviewAction, EmptyViewEvents>(initialState) {
companion object : MavericksViewModelFactory<SessionOverviewViewModel, SessionOverviewState> by hiltMavericksViewModelFactory()
companion object : MavericksViewModelFactory<SessionOverviewViewModel, SessionOverviewViewState> by hiltMavericksViewModelFactory()
@AssistedFactory
interface Factory : MavericksAssistedViewModelFactory<SessionOverviewViewModel, SessionOverviewState> {
override fun create(initialState: SessionOverviewState): SessionOverviewViewModel
interface Factory : MavericksAssistedViewModelFactory<SessionOverviewViewModel, SessionOverviewViewState> {
override fun create(initialState: SessionOverviewViewState): SessionOverviewViewModel
}
init {

View File

@ -18,7 +18,7 @@ package im.vector.app.features.settings.devices.v2.overview
import com.airbnb.mvrx.MavericksState
data class SessionOverviewState(
data class SessionOverviewViewState(
val sessionId: String,
val isCurrentSession: Boolean = false,
) : MavericksState {