Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-01-29 10:10:55 +01:00
parent 8a3bd19d3b
commit a8947341cc
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0

View File

@ -51,7 +51,8 @@ class ContactsViewModel constructor(
) : BaseViewModel<ConversationsListView>(application) {
private val selectedParticipants = mutableListOf<Participant>()
val selectedParticipantsLiveData: MutableLiveData<List<Participant>> = MutableLiveData()
val contactsLiveData: MutableLiveData<List<Participant>> = MutableLiveData()
private val _contacts: MutableLiveData<List<Participant>> = MutableLiveData()
val contactsLiveData: LiveData<List<Participant>> = _contacts
private val _operationState = MutableLiveData(ContactsViewOperationStateWrapper(ContactsViewOperationState.WAITING, null, null))
val operationState: LiveData<ContactsViewOperationStateWrapper> = _operationState.distinctUntilChanged()
@ -150,7 +151,7 @@ class ContactsViewModel constructor(
}
}
contactsLiveData.postValue(sortedList)
_contacts.postValue(sortedList)
}
override suspend fun onError(errorModel: ErrorModel?) {