Jump to unread: avoid blink when jumping

This commit is contained in:
ganfra 2021-06-24 18:33:30 +02:00
parent 1ba97fa9be
commit ab37984beb

View File

@ -1970,7 +1970,6 @@ class RoomDetailFragment @Inject constructor(
}
private fun onJumpToReadMarkerClicked() = withState(roomDetailViewModel) {
views.jumpToReadMarkerView.isVisible = false
if (it.unreadState is UnreadState.HasUnread) {
roomDetailViewModel.handle(RoomDetailAction.NavigateToEvent(it.unreadState.firstUnreadEventId, false))
}