Merge pull request #3293 from element-hq/toger5/more-disconnect-logging (#3297)

Fix creating two lk rooms if there is no local store setup (fixes a resulting disconnect bug)
This commit is contained in:
Timo
2025-05-28 09:07:50 +02:00
committed by GitHub
parent 24cb61c24b
commit 87f02b28a5
4 changed files with 11 additions and 2 deletions
+1
View File
@@ -131,6 +131,7 @@ export function useLivekit(
// @livekit/components-react. JSON.stringify() is used in deps of a
// useEffect() with an argument that references itself, if E2EE is enabled
const room = useMemo(() => {
logger.info("[LivekitRooms] Create LiveKit room with options", roomOptions);
const r = new Room(roomOptions);
r.setE2EEEnabled(e2eeSystem.kind !== E2eeType.NONE).catch((e) => {
logger.error("Failed to set E2EE enabled on room", e);