mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
fix for remote URL overriding
This commit is contained in:
parent
3408d9b5e2
commit
18fd9321e0
@ -105,7 +105,7 @@ class ElementCallWidgetDriver: WidgetCapabilitiesProvider, ElementCallWidgetDriv
|
||||
}
|
||||
|
||||
// Required to make the embedded app work with the widget URL
|
||||
let correctedUrlString = urlString.replacingOccurrences(of: "/room#", with: "#")
|
||||
let correctedUrlString = baseURL.isFileURL ? urlString.replacingOccurrences(of: "/room#", with: "#") : urlString
|
||||
guard let url = URL(string: correctedUrlString) else {
|
||||
return .failure(.failedParsingCallURL)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user