mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Tweak internal/external deeplink handling (#2664)
* Add a childRoom AppRoute. * Add a tests for child room routes.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user