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
|
@ -299,9 +299,8 @@ extension MastodonLoginViewController: MastodonLoginViewModelDelegate {
|
||||||
snapshot.appendSections([MastodonLoginViewSection.servers])
|
snapshot.appendSections([MastodonLoginViewSection.servers])
|
||||||
snapshot.appendItems(viewModel.filteredServers)
|
snapshot.appendItems(viewModel.filteredServers)
|
||||||
|
|
||||||
dataSource?.apply(snapshot, animatingDifferences: false)
|
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
self.dataSource?.apply(snapshot, animatingDifferences: false)
|
||||||
let numberOfResults = viewModel.filteredServers.count
|
let numberOfResults = viewModel.filteredServers.count
|
||||||
self.contentView.updateCorners(numberOfResults: numberOfResults)
|
self.contentView.updateCorners(numberOfResults: numberOfResults)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue