From 37e90229c2b42877fb693b7545b1707df39c4efc Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 6 Feb 2021 14:35:34 -0500 Subject: [PATCH] Fix crash when editing list --- Tusker/Screens/Lists/EditListAccountsViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tusker/Screens/Lists/EditListAccountsViewController.swift b/Tusker/Screens/Lists/EditListAccountsViewController.swift index aa411892..16555210 100644 --- a/Tusker/Screens/Lists/EditListAccountsViewController.swift +++ b/Tusker/Screens/Lists/EditListAccountsViewController.swift @@ -47,6 +47,7 @@ class EditListAccountsViewController: EnhancedTableViewController { guard case let .account(id) = item else { fatalError() } let cell = tableView.dequeueReusableCell(withIdentifier: "accountCell", for: indexPath) as! AccountTableViewCell + cell.delegate = self cell.updateUI(accountID: id) return cell }) @@ -171,3 +172,7 @@ extension EditListAccountsViewController: SearchResultsViewControllerDelegate { } } } + +extension EditListAccountsViewController: TuskerNavigationDelegate { + var apiController: MastodonController { mastodonController } +}