fix for remote URL overriding

This commit is contained in:
Mauro Romito 2025-02-19 18:03:15 +01:00
parent 3408d9b5e2
commit 18fd9321e0

View File

@ -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)
}