mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Renaming view state
This commit is contained in:
parent
26dbd31717
commit
3eb29b4661
@ -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 {
|
||||
|
@ -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 {
|
Loading…
Reference in New Issue
Block a user