diff --git a/ElementX/Sources/Application/AppCoordinator.swift b/ElementX/Sources/Application/AppCoordinator.swift index 0ffb313a5..731985c3b 100644 --- a/ElementX/Sources/Application/AppCoordinator.swift +++ b/ElementX/Sources/Application/AppCoordinator.swift @@ -245,8 +245,16 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg } func handleAppRoute(_ appRoute: AppRoute, windowType: SecondaryWindowType?) { + Task { + await asyncHandleAppRoute(appRoute, windowType: windowType) + } + } + + private func asyncHandleAppRoute(_ appRoute: AppRoute, windowType: SecondaryWindowType?) async { MXLog.info("Handling app route: \(appRoute)") + await resumeServices() + if let windowType { windowManager.handleRoute(appRoute, windowType: windowType) return