Timeline: revert back the paginateBackwards in the TimelinePresenter so it's now blocked in the Timeline if needed

This commit is contained in:
ganfra 2023-07-13 11:23:04 +02:00
parent 1a0dc8266b
commit f6b29c3700

View file

@ -85,6 +85,11 @@ class TimelinePresenter @Inject constructor(
timeline
.timelineItems
.onEach(timelineItemsFactory::replaceWith)
.onEach { timelineItems ->
if (timelineItems.isEmpty()) {
paginateBackwards()
}
}
.launchIn(this)
}