From d0855deef0b559cb37e63029175682e3962638ac Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Wed, 28 Oct 2026 18:41:23 +0000 Subject: [PATCH] Preserve the existing user agent by appending the app name. (#6435) --- ElementX/Sources/Screens/CallScreen/View/CallScreen.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Screens/CallScreen/View/CallScreen.swift b/ElementX/Sources/Screens/CallScreen/View/CallScreen.swift index c9b4ef871..329352b85 100644 --- a/ElementX/Sources/Screens/CallScreen/View/CallScreen.swift +++ b/ElementX/Sources/Screens/CallScreen/View/CallScreen.swift @@ -117,7 +117,9 @@ struct CallView: UIViewRepresentable { configuration.userContentController = userContentController configuration.allowsInlineMediaPlayback = true configuration.allowsPictureInPictureMediaPlayback = true - configuration.applicationNameForUserAgent = InfoPlistReader.main.bundleDisplayName + + let appName = InfoPlistReader.main.bundleDisplayName + configuration.applicationNameForUserAgent = configuration.applicationNameForUserAgent.map { "\($0) \(appName)" } ?? appName if let script = viewModelContext.viewState.script { let userScript = WKUserScript(source: script, injectionTime: .atDocumentEnd, forMainFrameOnly: false)