Skip to content

Commit

Permalink
fix(SceneDelegate): Add AccountManagerDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Jun 14, 2023
1 parent 33fed0c commit 4a741b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mail/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, AccountManagerDelegate
// `application:configurationForConnectingSceneSession` instead).
guard let _ = (scene as? UIWindowScene) else { return }
accountManager = AccountManager.instance
accountManager.delegate = self
updateWindowUI()
setupLaunch()
if let mailToURL = connectionOptions.urlContexts.first?.url {
Expand Down Expand Up @@ -107,7 +108,9 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, AccountManagerDelegate
}

func currentAccountNeedsAuthentication() {
showLoginView()
DispatchQueue.main.async { [weak self] in
self?.showLoginView()
}
}

private func setupLaunch() {
Expand Down

0 comments on commit 4a741b2

Please sign in to comment.