mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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
|
||||
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
|
||||
// `INStartVideoCallIntent` is to be replaced with `INStartCallIntent`
|
||||
// but calls from Recents still send it ¯\_(ツ)_/¯
|
||||
|
||||
Reference in New Issue
Block a user