diff --git a/Tusker/Screens/Lists/EditListAccountsViewController.swift b/Tusker/Screens/Lists/EditListAccountsViewController.swift index 1760f4ca..f502b4b2 100644 --- a/Tusker/Screens/Lists/EditListAccountsViewController.swift +++ b/Tusker/Screens/Lists/EditListAccountsViewController.swift @@ -298,7 +298,15 @@ class EditListAccountsViewController: UIViewController, CollectionViewController do { let request = List.remove(list.id, accounts: [id]) _ = try await mastodonController.run(request) - await self.loadAccounts() + + var snapshot = dataSource.snapshot() + if snapshot.itemIdentifiers.contains(.account(id: id)) { + snapshot.deleteItems([.account(id: id)]) + await MainActor.run { + dataSource.apply(snapshot) + } + } + } catch { let config = ToastConfiguration(from: error, with: "Error Removing Account", in: self) { [unowned self] toast in toast.dismissToast(animated: true)