mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
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…
x
Reference in New Issue
Block a user