mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-08 19:18:47 +01:00
enhancement: drawer content depending on logged status (#891)
This commit is contained in:
parent
6a793f17c7
commit
25a03cde65
@ -53,8 +53,7 @@ class ModalDrawerViewModel(
|
||||
}
|
||||
}.launchIn(this)
|
||||
|
||||
@OptIn(FlowPreview::class)
|
||||
identityRepository.isLogged.debounce(250).onEach { _ ->
|
||||
identityRepository.isLogged.onEach { _ ->
|
||||
refreshUser()
|
||||
refresh()
|
||||
}.launchIn(this)
|
||||
|
@ -61,7 +61,7 @@ class ProfileLoggedViewModel(
|
||||
}.launchIn(this)
|
||||
|
||||
@OptIn(FlowPreview::class)
|
||||
identityRepository.isLogged.drop(1).debounce(250).onEach { logged ->
|
||||
identityRepository.isLogged.drop(1).debounce(500).onEach { logged ->
|
||||
if (logged == true) {
|
||||
updateState {
|
||||
it.copy(
|
||||
|
Loading…
x
Reference in New Issue
Block a user