From 69c2faf0e1ee7c8d2ab883fb483358a6d2abe5bb Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 12 Jan 2021 22:17:01 -0500 Subject: [PATCH] Fix crash when user refreshes profile before initial pinned statuses request completes --- Tusker/Screens/Profile/ProfileStatusesViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tusker/Screens/Profile/ProfileStatusesViewController.swift b/Tusker/Screens/Profile/ProfileStatusesViewController.swift index 14f1bfce..ca39f622 100644 --- a/Tusker/Screens/Profile/ProfileStatusesViewController.swift +++ b/Tusker/Screens/Profile/ProfileStatusesViewController.swift @@ -182,7 +182,8 @@ class ProfileStatusesViewController: TimelineLikeTableViewController TimelineEntry in let state: StatusState if let (_, oldState) = oldPinnedStatuses.first(where: { $0.id == status.id }) {