Sliding sync session reset manual backpagination (#628)
* Force a timeline backpagination when the app becomes active again in case the sliding sync session expires and it no longer shows any items * Better way to load up timeline items when empty
This commit is contained in:
@@ -48,6 +48,10 @@ class TimelineTableViewController: UIViewController {
|
||||
}
|
||||
|
||||
applySnapshot()
|
||||
|
||||
if timelineItems.isEmpty {
|
||||
paginateBackwardsPublisher.send()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,10 +45,6 @@ struct TimelineView: UIViewControllerRepresentable {
|
||||
|
||||
init(viewModelContext: RoomScreenViewModel.Context) {
|
||||
context = viewModelContext
|
||||
|
||||
if viewModelContext.viewState.items.isEmpty {
|
||||
viewModelContext.send(viewAction: .paginateBackwards)
|
||||
}
|
||||
}
|
||||
|
||||
/// Updates the specified table view's properties from the current view state.
|
||||
|
||||
Reference in New Issue
Block a user