From ab4bcfa50f010940de67379e5bf23a16438fb8de Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 13 Sep 2020 15:34:45 -0400 Subject: [PATCH] Fix profile screen title not being set --- Tusker/Screens/Profile/ProfileViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Profile/ProfileViewController.swift b/Tusker/Screens/Profile/ProfileViewController.swift index ea867438c8..9d1c78f8f1 100644 --- a/Tusker/Screens/Profile/ProfileViewController.swift +++ b/Tusker/Screens/Profile/ProfileViewController.swift @@ -86,6 +86,7 @@ class ProfileViewController: UIPageViewController { if mastodonController.persistentContainer.account(for: accountID) != nil { headerView.updateUI(for: accountID) + updateAccountUI() } else { let req = Client.getAccount(id: accountID) mastodonController.run(req) { [weak self] (response) in @@ -93,6 +94,7 @@ class ProfileViewController: UIPageViewController { guard case let .success(account, _) = response else { fatalError() } self.mastodonController.persistentContainer.addOrUpdate(account: account, incrementReferenceCount: true) { (account) in DispatchQueue.main.async { + self.updateAccountUI() self.headerView.updateUI(for: self.accountID) self.pageControllers.forEach { $0.updateUI(account: account)