mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 04:50:08 +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() {
|
private fun fetchThreadList() {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
isLoading(true)
|
setLoading(true)
|
||||||
room?.fetchThreadSummaries()
|
room?.fetchThreadSummaries()
|
||||||
isLoading(false)
|
setLoading(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun isLoading(show: Boolean) {
|
private fun setLoading(isLoading: Boolean) {
|
||||||
setState {
|
setState {
|
||||||
copy(isLoading = show)
|
copy(isLoading = isLoading)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue