Update Element Call URL generation to match new parameter semantics (#11749)

The semantics of the preload parameter are changing as detailed here, meaning we now have to additionally specify skipLobby to get the desired behavior out of Element Call: https://github.com/vector-im/element-call/pull/1730
pull/28217/head
Robin 2023-10-16 09:43:44 -04:00 committed by GitHub
parent 5a0ebbfdaa
commit dfdb613673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -642,9 +642,10 @@ export class ElementCall extends Call {
// Splice together the Element Call URL for this call
const params = new URLSearchParams({
embed: "",
preload: "",
hideHeader: "",
embed: "true", // We're embedding EC within another application
preload: "true", // We want it to load in the background
skipLobby: "true", // Skip the lobby since we show a lobby component of our own
hideHeader: "true", // Hide the header since our room header is enough
userId: client.getUserId()!,
deviceId: client.getDeviceId()!,
roomId: groupCall.room.roomId,