forked from Mirrors/gomuks
web/widget/call: use real homeserver base URL
This commit is contained in:
parent
508355f2bf
commit
3ef311d9d6
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue