Stop the timeline from requesting back pagination whilst loading existing items. (#2969)

* Handle Rust error "can't subscribe to the back-pagination status on a focused timeline"

* Fix a bug where the timeline was attempting to paginate before adding the items.

* Stop the timeline from paginating whilst loading existing items.
This commit is contained in:
Doug
2024-06-27 14:20:44 +01:00
committed by GitHub
parent 41d40d8de0
commit d977efdf31
5 changed files with 94 additions and 35 deletions
@@ -117,7 +117,7 @@ class TimelineTableViewController: UIViewController {
}
/// The state of pagination (in both directions) of the current timeline.
var paginationState: PaginationState = .default {
var paginationState: PaginationState = .initial {
didSet {
// Paginate again if the threshold hasn't been satisfied.
paginatePublisher.send(())