From 2cba1688046f63f6c806d2b36bb033ab6cd13be8 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 27 Apr 2020 19:33:36 -0400 Subject: [PATCH] Fix account cells using old cache --- Tusker/Views/Account Cell/AccountTableViewCell.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tusker/Views/Account Cell/AccountTableViewCell.swift b/Tusker/Views/Account Cell/AccountTableViewCell.swift index ad8066e8..7159fcf9 100644 --- a/Tusker/Views/Account Cell/AccountTableViewCell.swift +++ b/Tusker/Views/Account Cell/AccountTableViewCell.swift @@ -34,7 +34,7 @@ class AccountTableViewCell: UITableViewCell { @objc func updateUIForPrefrences() { avatarImageView.layer.cornerRadius = Preferences.shared.avatarStyle.cornerRadius(for: avatarImageView) - guard let account = mastodonController.cache.account(for: accountID) else { + guard let account = mastodonController.persistentContainer.account(for: accountID) else { fatalError("Missing cached account \(accountID!)") } displayNameLabel.updateForAccountDisplayName(account: account) @@ -42,7 +42,7 @@ class AccountTableViewCell: UITableViewCell { func updateUI(accountID: String) { self.accountID = accountID - guard let account = mastodonController.cache.account(for: accountID) else { + guard let account = mastodonController.persistentContainer.account(for: accountID) else { fatalError("Missing cached account \(accountID)") }