forked from shadowfacts/Tusker
Fix crash on refreshing
This commit is contained in:
parent
f9b85c87b4
commit
79b23127e9
|
@ -213,7 +213,6 @@ class TimelineTableViewController: EnhancedTableViewController {
|
|||
let request = Client.getStatuses(timeline: timeline, range: newer)
|
||||
mastodonController.run(request) { response in
|
||||
guard case let .success(newStatuses, pagination) = response else { fatalError() }
|
||||
self.timelineSegments[0].insert(contentsOf: newStatuses.map { ($0.id, .unknown) }, at: 0)
|
||||
|
||||
// If there is no new newer pagination, don't reset it, so that the user can continue refreshing for more recent statuses
|
||||
// Otherwise, when no new statuses were loaded, it would get reset and the the user would be unable to refresh
|
||||
|
|
Loading…
Reference in New Issue