mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
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: {
|
||||
perParticipantE2EE: !!room?.meta.current.encryption_event,
|
||||
// Note: this won't actually work because matrix-js-sdk drops the path prefix for media requests.
|
||||
homeserverBaseURL: new URL(
|
||||
`_gomuks/matrixcompat/${client.store.imageAuthToken}`,
|
||||
window.location.href,
|
||||
).toString(),
|
||||
homeserverBaseURL: client.state.current?.is_logged_in ? client.state.current.homeserver_url : "",
|
||||
},
|
||||
}), [room, client, baseURL])
|
||||
if (!room || !client) {
|
||||
|
|
Loading…
Add table
Reference in a new issue