mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 10:55:55 +03:00
Enhance naming
This commit is contained in:
parent
0d59a31788
commit
f8a909b014
1 changed files with 4 additions and 4 deletions
|
@ -113,15 +113,15 @@ class ThreadListViewModel @AssistedInject constructor(@Assisted val initialState
|
|||
|
||||
private fun fetchThreadList() {
|
||||
viewModelScope.launch {
|
||||
isLoading(true)
|
||||
setLoading(true)
|
||||
room?.fetchThreadSummaries()
|
||||
isLoading(false)
|
||||
setLoading(false)
|
||||
}
|
||||
}
|
||||
|
||||
private fun isLoading(show: Boolean) {
|
||||
private fun setLoading(isLoading: Boolean) {
|
||||
setState {
|
||||
copy(isLoading = show)
|
||||
copy(isLoading = isLoading)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue