review changes
This commit is contained in:
parent
ecd1776085
commit
61cf3c3125
@ -68,7 +68,7 @@ class InvitesViewModel @AssistedInject constructor(
|
|||||||
private val _invites = MutableSharedFlow<InvitesContentState>(replay = 1)
|
private val _invites = MutableSharedFlow<InvitesContentState>(replay = 1)
|
||||||
val invites = _invites.asSharedFlow()
|
val invites = _invites.asSharedFlow()
|
||||||
|
|
||||||
var invitesCount = -1
|
private var invitesCount = -1
|
||||||
|
|
||||||
init {
|
init {
|
||||||
observeInvites()
|
observeInvites()
|
||||||
|
@ -26,7 +26,7 @@ data class InvitesViewState(
|
|||||||
val roomMembershipChanges: Map<String, ChangeMembershipState> = emptyMap(),
|
val roomMembershipChanges: Map<String, ChangeMembershipState> = emptyMap(),
|
||||||
) : MavericksState
|
) : MavericksState
|
||||||
|
|
||||||
sealed class InvitesContentState {
|
sealed interface InvitesContentState {
|
||||||
object Loading : InvitesContentState()
|
object Loading : InvitesContentState()
|
||||||
data class Empty(
|
data class Empty(
|
||||||
val title: CharSequence,
|
val title: CharSequence,
|
||||||
|
Loading…
Reference in New Issue
Block a user