Merge pull request #935 from alariej/alariej
Add e2eEnabled parameter to Widget client
This commit is contained in:
@@ -101,7 +101,7 @@ export const widget: WidgetHelpers | null = (() => {
|
|||||||
// We need to do this now rather than later because it has capabilities to
|
// 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?)
|
// 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 (!roomId) throw new Error("Room ID must be supplied");
|
||||||
if (!userId) throw new Error("User ID must be supplied");
|
if (!userId) throw new Error("User ID must be supplied");
|
||||||
if (!deviceId) throw new Error("Device ID must be supplied");
|
if (!deviceId) throw new Error("Device ID must be supplied");
|
||||||
@@ -147,6 +147,7 @@ export const widget: WidgetHelpers | null = (() => {
|
|||||||
userId,
|
userId,
|
||||||
deviceId,
|
deviceId,
|
||||||
timelineSupport: true,
|
timelineSupport: true,
|
||||||
|
useE2eForGroupCall: e2eEnabled,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const clientPromise = client.startClient().then(() => client);
|
const clientPromise = client.startClient().then(() => client);
|
||||||
|
|||||||
Reference in New Issue
Block a user