Skip to content

Commit 5eb552e

Browse files
authored
Merge pull request #935 from alariej/alariej
Add e2eEnabled parameter to Widget client
2 parents 29e41c7 + 58d87db commit 5eb552e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/widget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const widget: WidgetHelpers | null = (() => {
101101
// We need to do this now rather than later because it has capabilities to
102102
// request, and is responsible for starting the transport (should it be?)
103103

104-
const { roomId, userId, deviceId, baseUrl } = getUrlParams();
104+
const { roomId, userId, deviceId, baseUrl, e2eEnabled } = getUrlParams();
105105
if (!roomId) throw new Error("Room ID must be supplied");
106106
if (!userId) throw new Error("User ID must be supplied");
107107
if (!deviceId) throw new Error("Device ID must be supplied");
@@ -147,6 +147,7 @@ export const widget: WidgetHelpers | null = (() => {
147147
userId,
148148
deviceId,
149149
timelineSupport: true,
150+
useE2eForGroupCall: e2eEnabled,
150151
}
151152
);
152153
const clientPromise = client.startClient().then(() => client);

0 commit comments

Comments
 (0)