1
0
Fork 0
forked from Mirrors/gomuks

web/widget/call: use real homeserver base URL

This commit is contained in:
Tulir Asokan 2025-03-04 23:06:45 +02:00
parent 508355f2bf
commit 3ef311d9d6

View file

@ -45,10 +45,7 @@ const ElementCall = () => {
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. // Note: this won't actually work because matrix-js-sdk drops the path prefix for media requests.
homeserverBaseURL: new URL( homeserverBaseURL: client.state.current?.is_logged_in ? client.state.current.homeserver_url : "",
`_gomuks/matrixcompat/${client.store.imageAuthToken}`,
window.location.href,
).toString(),
}, },
}), [room, client, baseURL]) }), [room, client, baseURL])
if (!room || !client) { if (!room || !client) {