Apply differences on main-queue
This fixes a lot of warnings in Console when searching for a server
This commit is contained in:
parent
ca61d29ae2
commit
5513174696
|
@ -298,10 +298,9 @@ extension MastodonLoginViewController: MastodonLoginViewModelDelegate {
|
|||
|
||||
snapshot.appendSections([MastodonLoginViewSection.servers])
|
||||
snapshot.appendItems(viewModel.filteredServers)
|
||||
|
||||
dataSource?.apply(snapshot, animatingDifferences: false)
|
||||
|
||||
|
||||
DispatchQueue.main.async {
|
||||
self.dataSource?.apply(snapshot, animatingDifferences: false)
|
||||
let numberOfResults = viewModel.filteredServers.count
|
||||
self.contentView.updateCorners(numberOfResults: numberOfResults)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue