Skip to content

Commit

Permalink
Fix issue where app sometimes launches to login screen even though yo…
Browse files Browse the repository at this point in the history
…u are already logged in.
  • Loading branch information
whattherestimefor committed Nov 7, 2024
1 parent 9d774cb commit 531c1a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mastodon/Coordinator/SceneCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 531c1a0

Please sign in to comment.