Don't double update accounts
Adding a status to the cache will also cache the status' account
This commit is contained in:
parent
40863ef130
commit
0a89dd3041
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue