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:
@@ -306,7 +306,7 @@ fun CheckHiddenNoteCompose(
|
|||||||
accountViewModel.account.liveHiddenUsers.map {
|
accountViewModel.account.liveHiddenUsers.map {
|
||||||
note.isHiddenFor(it)
|
note.isHiddenFor(it)
|
||||||
}.distinctUntilChanged()
|
}.distinctUntilChanged()
|
||||||
}.observeAsState(false)
|
}.observeAsState(accountViewModel.isNoteHidden(note))
|
||||||
|
|
||||||
Crossfade(targetState = isHidden) {
|
Crossfade(targetState = isHidden) {
|
||||||
if (!it) {
|
if (!it) {
|
||||||
|
|||||||
Reference in New Issue
Block a user