From 1ba090b9145db3040a60665d8fe58a3901c048a4 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 21 Aug 2026 15:19:04 +0300 Subject: [PATCH] Fix missing back pagination attempt Avoiding not populating past the initial events --- .../Screens/Timeline/TimelineTableViewController.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ElementX/Sources/Screens/Timeline/TimelineTableViewController.swift b/ElementX/Sources/Screens/Timeline/TimelineTableViewController.swift index 4fe7a5f3d..d6cdb5eb7 100644 --- a/ElementX/Sources/Screens/Timeline/TimelineTableViewController.swift +++ b/ElementX/Sources/Screens/Timeline/TimelineTableViewController.swift @@ -56,10 +56,6 @@ class TimelineTableViewController: UIViewController { applySnapshot() - if timelineItemsDictionary.isEmpty { - paginatePublisher.send() - } - sendLastVisibleItemReadReceipt() } } @@ -390,6 +386,9 @@ class TimelineTableViewController: UIViewController { // Re-evaluate after the snapshot has been applied so the new layout is reflected. DispatchQueue.main.async { [weak self] in self?.updateReadMarkerVisibility() + + // Make sure we paginate with the final timeline geometry + self?.paginatePublisher.send(()) } }