From 58d87db55f9d75023a0a225d6f0c65e02b256f5a Mon Sep 17 00:00:00 2001 From: alariej Date: Wed, 1 Mar 2023 14:30:25 +0100 Subject: [PATCH] Add e2eEnabled parameter to Widget client --- src/widget.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget.ts b/src/widget.ts index c223c223..6a38f9dd 100644 --- a/src/widget.ts +++ b/src/widget.ts @@ -101,7 +101,7 @@ export const widget: WidgetHelpers | null = (() => { // We need to do this now rather than later because it has capabilities to // request, and is responsible for starting the transport (should it be?) - const { roomId, userId, deviceId, baseUrl } = getUrlParams(); + const { roomId, userId, deviceId, baseUrl, e2eEnabled } = getUrlParams(); if (!roomId) throw new Error("Room ID must be supplied"); if (!userId) throw new Error("User ID must be supplied"); if (!deviceId) throw new Error("Device ID must be supplied"); @@ -147,6 +147,7 @@ export const widget: WidgetHelpers | null = (() => { userId, deviceId, timelineSupport: true, + useE2eForGroupCall: e2eEnabled, } ); const clientPromise = client.startClient().then(() => client);