pref can be undefined.

This commit is contained in:
Rawrington committed 2026-03-23 00:44:32 +00:00
1 parent 8eecebe339
commit 139290e326
1 file changed
+1 -1
+1 -1
View File
@@ -52,7 +52,7 @@ export const createCallEmbed = (
const ongoing =
MatrixRTCSession.sessionMembershipsForRoom(room, rtcSession.sessionDescription).length > 0;
const intent = CallEmbed.getIntent(dm, ongoing, pref.video);
const intent = CallEmbed.getIntent(dm, ongoing, pref?.video);
const widget = CallEmbed.getWidget(mx, room, intent, themeKind);
const controlState = pref && new CallControlState(pref.microphone, pref.video, pref.sound);