mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Timeline: revert back the paginateBackwards in the TimelinePresenter so it's now blocked in the Timeline if needed
This commit is contained in:
+5
@@ -85,6 +85,11 @@ class TimelinePresenter @Inject constructor(
|
|||||||
timeline
|
timeline
|
||||||
.timelineItems
|
.timelineItems
|
||||||
.onEach(timelineItemsFactory::replaceWith)
|
.onEach(timelineItemsFactory::replaceWith)
|
||||||
|
.onEach { timelineItems ->
|
||||||
|
if (timelineItems.isEmpty()) {
|
||||||
|
paginateBackwards()
|
||||||
|
}
|
||||||
|
}
|
||||||
.launchIn(this)
|
.launchIn(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user