From 0f37843a5b3fb29f8f12ca343929e5a7d1a01cfa Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 5 Oct 2018 19:25:48 -0400 Subject: [PATCH] Fix crash on follow notification --- .../xcshareddata/xcschemes/Pachyderm.xcscheme | 80 +++++++++++++++++++ .../NotificationsTableViewController.swift | 1 + 2 files changed, 81 insertions(+) create mode 100644 Tusker.xcodeproj/xcshareddata/xcschemes/Pachyderm.xcscheme diff --git a/Tusker.xcodeproj/xcshareddata/xcschemes/Pachyderm.xcscheme b/Tusker.xcodeproj/xcshareddata/xcschemes/Pachyderm.xcscheme new file mode 100644 index 00000000..8e781ea8 --- /dev/null +++ b/Tusker.xcodeproj/xcshareddata/xcschemes/Pachyderm.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tusker/Screens/Notifications/NotificationsTableViewController.swift b/Tusker/Screens/Notifications/NotificationsTableViewController.swift index 56511a47..25592560 100644 --- a/Tusker/Screens/Notifications/NotificationsTableViewController.swift +++ b/Tusker/Screens/Notifications/NotificationsTableViewController.swift @@ -48,6 +48,7 @@ class NotificationsTableViewController: UITableViewController { guard case let .success(notifications, pagination) = result else { fatalError() } self.notifications = notifications MastodonCache.addAll(statuses: notifications.compactMap { $0.status }) + MastodonCache.addAll(accounts: notifications.map { $0.account }) self.newer = pagination?.newer self.older = pagination?.older }