From 926eb8adbff8867957874c71d59d3d2864fd416d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 25 Jul 2023 16:40:12 +0200 Subject: [PATCH] Fix e2ee bugginess MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/room/InCallView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 60f3e0f1..ee3e893a 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -110,7 +110,9 @@ export function ActiveCall(props: ActiveCallProps) { return null; } - livekitRoom.setE2EEEnabled(true); + if (props.e2eeConfig && !livekitRoom.isE2EEEnabled) { + livekitRoom.setE2EEEnabled(!!props.e2eeConfig); + } return (