Skip to content

Commit 94cb694

Browse files
committed
Timeline: revert back the paginateBackwards in the TimelinePresenter so it's now blocked in the Timeline if needed
1 parent a92fa39 commit 94cb694

File tree

1 file changed

+5
-0
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline

1 file changed

+5
-0
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ class TimelinePresenter @Inject constructor(
8585
timeline
8686
.timelineItems
8787
.onEach(timelineItemsFactory::replaceWith)
88+
.onEach { timelineItems ->
89+
if (timelineItems.isEmpty()) {
90+
paginateBackwards()
91+
}
92+
}
8893
.launchIn(this)
8994
}
9095

0 commit comments

Comments
 (0)