mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fix a bug where scanning a universal link as a QR code would open the app without handling the link. (#5804)
This commit is contained in:
@@ -46,6 +46,12 @@ struct Application: App {
|
|||||||
.onOpenURL { url in
|
.onOpenURL { url in
|
||||||
openURL(url, isExternalURL: true)
|
openURL(url, isExternalURL: true)
|
||||||
}
|
}
|
||||||
|
.onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in
|
||||||
|
// Universal Links opened from the Camera app's QR scanner (and NFC tags) are
|
||||||
|
// delivered as a browsing-web user activity rather than through `onOpenURL` 🤷♂️
|
||||||
|
guard let url = userActivity.webpageURL else { return }
|
||||||
|
openURL(url, isExternalURL: true)
|
||||||
|
}
|
||||||
.onContinueUserActivity("INStartVideoCallIntent") { userActivity in
|
.onContinueUserActivity("INStartVideoCallIntent") { userActivity in
|
||||||
// `INStartVideoCallIntent` is to be replaced with `INStartCallIntent`
|
// `INStartVideoCallIntent` is to be replaced with `INStartCallIntent`
|
||||||
// but calls from Recents still send it ¯\_(ツ)_/¯
|
// but calls from Recents still send it ¯\_(ツ)_/¯
|
||||||
|
|||||||
Reference in New Issue
Block a user