web/widget/call: update parameters

This commit is contained in:
Tulir Asokan 2025-03-05 02:23:21 +02:00
parent 9a88df0cc1
commit 6e8dd0e591

View file

@ -30,6 +30,7 @@ const elementCallParams = new URLSearchParams({
intent: "join_existing", intent: "join_existing",
hideHeader: "true", hideHeader: "true",
confineToRoom: "true", confineToRoom: "true",
appPrompt: "false",
}).toString().replaceAll("%24", "$") }).toString().replaceAll("%24", "$")
const ElementCall = () => { const ElementCall = () => {
@ -44,7 +45,6 @@ const ElementCall = () => {
waitForIframeLoad: false, waitForIframeLoad: false,
data: { data: {
perParticipantE2EE: !!room?.meta.current.encryption_event, perParticipantE2EE: !!room?.meta.current.encryption_event,
// Note: this won't actually work because matrix-js-sdk drops the path prefix for media requests.
homeserverBaseURL: client.state.current?.is_logged_in ? client.state.current.homeserver_url : "", homeserverBaseURL: client.state.current?.is_logged_in ? client.state.current.homeserver_url : "",
}, },
}), [room, client, baseURL]) }), [room, client, baseURL])