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
@@ -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