From dfdb613673836f8c9af90573ddd58b47c6f83846 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 16 Oct 2023 09:43:44 -0400 Subject: [PATCH] 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 --- src/models/Call.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/models/Call.ts b/src/models/Call.ts index 5b27f53766..a87be00291 100644 --- a/src/models/Call.ts +++ b/src/models/Call.ts @@ -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,