mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:31:27 +00:00
Prevent ElementX from intercepting links that it can't handle. Redirect them to the system browser
This commit is contained in:
committed by
Stefan Ceriu
parent
a05c3e3774
commit
68ea9acb36
@@ -83,6 +83,12 @@ struct ElementCallURLParser: URLParser {
|
||||
private let customSchemeURLQueryParameterName = "url"
|
||||
|
||||
func route(from url: URL) -> AppRoute? {
|
||||
// Element Call not supported, WebRTC not available
|
||||
// https://github.com/vector-im/element-x-ios/issues/1794
|
||||
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
return nil
|
||||
}
|
||||
|
||||
// First try processing URLs with custom schemes
|
||||
if let scheme = url.scheme,
|
||||
scheme == InfoPlistReader.app.elementCallScheme {
|
||||
|
||||
Reference in New Issue
Block a user