Reverts the hidden note LiveData to make sure the interface doesn't blink with the hidden note that just disappears ms later.

This commit is contained in:
Vitor Pamplona 2023-10-27 17:58:40 -04:00
parent 2ccf7ec2f0
commit c606212043

View File

@ -306,7 +306,7 @@ fun CheckHiddenNoteCompose(
accountViewModel.account.liveHiddenUsers.map {
note.isHiddenFor(it)
}.distinctUntilChanged()
}.observeAsState(false)
}.observeAsState(accountViewModel.isNoteHidden(note))
Crossfade(targetState = isHidden) {
if (!it) {