Merge pull request #516 from greenart7c3/boosted_blocked

fix boosted notes from blocked users appearing as blank
This commit is contained in:
Vitor Pamplona
2023-07-21 08:58:05 -04:00
committed by GitHub
@@ -291,8 +291,9 @@ fun CheckHiddenNoteCompose(
nav = nav
)
} else {
val boostedNote = note.replyTo?.lastOrNull()
val isHidden by accountViewModel.account.liveHiddenUsers.map {
note.isHiddenFor(it)
note.isHiddenFor(it) || boostedNote?.isHiddenFor(it) == true
}.observeAsState(accountViewModel.isNoteHidden(note))
Crossfade(targetState = isHidden) {