Compare commits
No commits in common. "667d30a7100d9e5170b451dbe7333230adacb8e9" and "9b30b4801625f8d3f7a7d2570c3f826385c470a3" have entirely different histories.
667d30a710
...
9b30b48016
|
@ -2,7 +2,7 @@
|
||||||
"object": {
|
"object": {
|
||||||
"pins": [
|
"pins": [
|
||||||
{
|
{
|
||||||
"package": "plcrashreporter",
|
"package": "PLCrashReporter",
|
||||||
"repositoryURL": "https://github.com/microsoft/plcrashreporter",
|
"repositoryURL": "https://github.com/microsoft/plcrashreporter",
|
||||||
"state": {
|
"state": {
|
||||||
"branch": null,
|
"branch": null,
|
||||||
|
|
|
@ -80,15 +80,15 @@ class EditListAccountsViewController: EnhancedTableViewController {
|
||||||
|
|
||||||
self.nextRange = pagination?.older
|
self.nextRange = pagination?.older
|
||||||
|
|
||||||
self.mastodonController.persistentContainer.addAll(accounts: accounts) {
|
self.mastodonController.persistentContainer.addAll(accounts: accounts)
|
||||||
var snapshot = self.dataSource.snapshot()
|
|
||||||
snapshot.deleteSections([.accounts])
|
|
||||||
snapshot.appendSections([.accounts])
|
|
||||||
snapshot.appendItems(accounts.map { .account(id: $0.id) })
|
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
var snapshot = self.dataSource.snapshot()
|
||||||
self.dataSource.apply(snapshot)
|
snapshot.deleteSections([.accounts])
|
||||||
}
|
snapshot.appendSections([.accounts])
|
||||||
|
snapshot.appendItems(accounts.map { .account(id: $0.id) })
|
||||||
|
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.dataSource.apply(snapshot)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue