From 79b23127e9e9a50974388b7e3bc44dfa7cb6f33b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 15 Aug 2020 14:15:38 -0400 Subject: [PATCH] Fix crash on refreshing --- Tusker/Screens/Timeline/TimelineTableViewController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Tusker/Screens/Timeline/TimelineTableViewController.swift b/Tusker/Screens/Timeline/TimelineTableViewController.swift index a7d3afec..fb39aed3 100644 --- a/Tusker/Screens/Timeline/TimelineTableViewController.swift +++ b/Tusker/Screens/Timeline/TimelineTableViewController.swift @@ -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