From 393abe6fa5cb7469e5582b19630fcee52f7104b5 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 4 Jun 2026 14:37:22 +0300 Subject: [PATCH] Make sure client services are resumed before handling app routes. --- ElementX/Sources/Application/AppCoordinator.swift | 8 ++++++++ 1 file changed, 8 insertions(+) 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