From 531c1a054e91fe2117a3132551503970f9c99627 Mon Sep 17 00:00:00 2001 From: shannon Date: Thu, 7 Nov 2024 08:56:03 -0500 Subject: [PATCH] Fix issue where app sometimes launches to login screen even though you are already logged in. --- Mastodon/Coordinator/SceneCoordinator.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mastodon/Coordinator/SceneCoordinator.swift b/Mastodon/Coordinator/SceneCoordinator.swift index b6924cd53..4ea0fb6ee 100644 --- a/Mastodon/Coordinator/SceneCoordinator.swift +++ b/Mastodon/Coordinator/SceneCoordinator.swift @@ -248,9 +248,11 @@ extension SceneCoordinator { extension SceneCoordinator { + @MainActor func setup() { let rootViewController: UIViewController + AuthenticationServiceProvider.shared.prepareForUse() let _authentication = AuthenticationServiceProvider.shared.authenticationSortedByActivation().first let _authContext = _authentication.flatMap { AuthContext(authentication: $0) } self.authContext = _authContext