Don't double update accounts

Adding a status to the cache will also cache the status' account
This commit is contained in:
Shadowfacts 2020-05-11 18:27:26 -04:00
parent 40863ef130
commit 0a89dd3041
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 0 additions and 1 deletions

View File

@ -158,7 +158,6 @@ class SearchResultsViewController: EnhancedTableViewController {
snapshot.appendSections([.statuses]) snapshot.appendSections([.statuses])
snapshot.appendItems(results.statuses.map { .status($0.id, .unknown) }, toSection: .statuses) snapshot.appendItems(results.statuses.map { .status($0.id, .unknown) }, toSection: .statuses)
addStatuses(results.statuses) addStatuses(results.statuses)
addAccounts(results.statuses.map { $0.account })
} }
}, completion: { }, completion: {
DispatchQueue.main.async { DispatchQueue.main.async {