mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
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:
@@ -229,7 +229,7 @@ struct RoomMemberState {
|
||||
/// Is also nice to have this as a wrapper for any state that is directly connected to the timeline.
|
||||
struct TimelineViewState {
|
||||
var isLive = true
|
||||
var paginationState = PaginationState.default
|
||||
var paginationState = PaginationState.initial
|
||||
|
||||
/// The room is in the process of loading items from a new timeline (switching to/from a detached timeline).
|
||||
var isSwitchingTimelines = false
|
||||
|
||||
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user