diff --git a/Tusker/Screens/Notifications/NotificationsTableViewController.swift b/Tusker/Screens/Notifications/NotificationsTableViewController.swift index 24e67261..ab5b59c2 100644 --- a/Tusker/Screens/Notifications/NotificationsTableViewController.swift +++ b/Tusker/Screens/Notifications/NotificationsTableViewController.swift @@ -57,7 +57,10 @@ class NotificationsTableViewController: TimelineLikeTableViewController Void) { let request = Client.getNotifications(excludeTypes: excludedTypes) mastodonController.run(request) { (response) in - guard case let .success(notifications, pagination) = response else { fatalError() } + guard case let .success(notifications, pagination) = response else { + completion([]) + return + } let groups = NotificationGroup.createGroups(notifications: notifications, only: self.groupTypes) diff --git a/Tusker/Screens/Profile/ProfileStatusesViewController.swift b/Tusker/Screens/Profile/ProfileStatusesViewController.swift index d1b73e46..2934acd8 100644 --- a/Tusker/Screens/Profile/ProfileStatusesViewController.swift +++ b/Tusker/Screens/Profile/ProfileStatusesViewController.swift @@ -99,6 +99,7 @@ class ProfileStatusesViewController: TimelineLikeTableViewController