mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:26:40 +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?) {
|
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)")
|
MXLog.info("Handling app route: \(appRoute)")
|
||||||
|
|
||||||
|
await resumeServices()
|
||||||
|
|
||||||
if let windowType {
|
if let windowType {
|
||||||
windowManager.handleRoute(appRoute, windowType: windowType)
|
windowManager.handleRoute(appRoute, windowType: windowType)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user