From 61cf3c3125a82c71e73bb271396fa4ab4084d17f Mon Sep 17 00:00:00 2001 From: NIkita Fedrunov Date: Mon, 5 Sep 2022 18:56:43 +0200 Subject: [PATCH] review changes --- .../features/home/room/list/home/invites/InvitesViewModel.kt | 2 +- .../features/home/room/list/home/invites/InvitesViewState.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewModel.kt index 1e5880d772..b8034d2364 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewModel.kt @@ -68,7 +68,7 @@ class InvitesViewModel @AssistedInject constructor( private val _invites = MutableSharedFlow(replay = 1) val invites = _invites.asSharedFlow() - var invitesCount = -1 + private var invitesCount = -1 init { observeInvites() diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewState.kt b/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewState.kt index 397042a96a..12ce5cd9e4 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewState.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/home/invites/InvitesViewState.kt @@ -26,7 +26,7 @@ data class InvitesViewState( val roomMembershipChanges: Map = emptyMap(), ) : MavericksState -sealed class InvitesContentState { +sealed interface InvitesContentState { object Loading : InvitesContentState() data class Empty( val title: CharSequence,