enhancement: drawer content depending on logged status (#891)

This commit is contained in:
Diego Beraldin 2024-05-26 13:25:35 +02:00 committed by GitHub
parent 6a793f17c7
commit 25a03cde65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -53,8 +53,7 @@ class ModalDrawerViewModel(
}
}.launchIn(this)
@OptIn(FlowPreview::class)
identityRepository.isLogged.debounce(250).onEach { _ ->
identityRepository.isLogged.onEach { _ ->
refreshUser()
refresh()
}.launchIn(this)

View File

@ -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(