mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-09 10:08:45 +01:00
fix: modal drawer refresh
This commit is contained in:
parent
1d7c0bac39
commit
a8cc1a5695
@ -21,7 +21,6 @@ import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.flow.channelFlow
|
||||
import kotlinx.coroutines.flow.debounce
|
||||
import kotlinx.coroutines.flow.distinctUntilChanged
|
||||
import kotlinx.coroutines.flow.drop
|
||||
import kotlinx.coroutines.flow.flatMapConcat
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
@ -53,7 +52,7 @@ class ModalDrawerViewModel(
|
||||
it.copy(instance = instance)
|
||||
}
|
||||
}.launchIn(this)
|
||||
identityRepository.isLogged.drop(1).debounce(250).onEach { _ ->
|
||||
identityRepository.isLogged.debounce(250).onEach { _ ->
|
||||
refreshUser()
|
||||
refresh()
|
||||
}.launchIn(this)
|
||||
|
Loading…
x
Reference in New Issue
Block a user