From 0a89dd30414b51a14ce0a9b1b1955da3473fa89d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 11 May 2020 18:27:26 -0400 Subject: [PATCH] Don't double update accounts Adding a status to the cache will also cache the status' account --- Tusker/Screens/Search/SearchResultsViewController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Tusker/Screens/Search/SearchResultsViewController.swift b/Tusker/Screens/Search/SearchResultsViewController.swift index dad9e1ad..ba4b7fff 100644 --- a/Tusker/Screens/Search/SearchResultsViewController.swift +++ b/Tusker/Screens/Search/SearchResultsViewController.swift @@ -158,7 +158,6 @@ class SearchResultsViewController: EnhancedTableViewController { snapshot.appendSections([.statuses]) snapshot.appendItems(results.statuses.map { .status($0.id, .unknown) }, toSection: .statuses) addStatuses(results.statuses) - addAccounts(results.statuses.map { $0.account }) } }, completion: { DispatchQueue.main.async {