mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Make sure client services are resumed before handling app routes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user