Skip to content

Commit 652e891

Browse files
authored
Stop using deprecated Element Call URL parameters (#30422)
These deprecated parameters will be removed very soon (planned for Element Call version 0.15.0) and we no longer have to care about backward compatibility with old versions of Element Call (due to the embedding/bundling work), so now is the right time to migrate.
1 parent 7eb5a29 commit 652e891

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/Call.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,12 +669,12 @@ export class ElementCall extends Call {
669669

670670
// Splice together the Element Call URL for this call
671671
const params = new URLSearchParams({
672-
embed: "true", // We're embedding EC within another application
672+
confineToRoom: "true", // Only show the call interface for the configured room
673673
// Template variables are used, so that this can be configured using the widget data.
674674
skipLobby: "$skipLobby", // Skip the lobby in case we show a lobby component of our own.
675675
returnToLobby: "$returnToLobby", // Returns to the lobby (instead of blank screen) when the call ends. (For video rooms)
676676
perParticipantE2EE: "$perParticipantE2EE",
677-
hideHeader: "true", // Hide the header since our room header is enough
677+
header: "none", // Hide the header since our room header is enough
678678
userId: client.getUserId()!,
679679
deviceId: client.getDeviceId()!,
680680
roomId: roomId,

0 commit comments

Comments
 (0)