Tweak internal/external deeplink handling (#2664)

* Add a childRoom AppRoute.

* Add a tests for child room routes.
This commit is contained in:
Doug
2024-04-08 16:44:03 +01:00
committed by GitHub
parent 446aab58de
commit 761824fa0d
9 changed files with 86 additions and 14 deletions
@@ -40,14 +40,14 @@ struct Application: App {
appCoordinator.toPresentable()
.statusBarHidden(shouldHideStatusBar)
.environment(\.openURL, OpenURLAction { url in
if appCoordinator.handleDeepLink(url) {
if appCoordinator.handleDeepLink(url, isExternalURL: false) {
return .handled
}
return .systemAction
})
.onOpenURL {
if !appCoordinator.handleDeepLink($0) {
if !appCoordinator.handleDeepLink($0, isExternalURL: true) {
openURLInSystemBrowser($0)
}
}