This commit is contained in:
Timo K
2025-12-11 15:04:07 +01:00
parent 68a32fdff6
commit c1c73b0f02

View File

@@ -32,7 +32,6 @@ import {
type CallMembership,
MatrixRTCSession,
MatrixRTCSessionEvent,
SlotDescription,
} from "matrix-js-sdk/lib/matrixrtc";
import {
type Room as LivekitRoom,
@@ -98,10 +97,13 @@ export async function createMatrixRTCSdk(
const mediaDevices = new MediaDevices(scope);
const muteStates = new MuteStates(scope, mediaDevices, constant(true));
const rtcSession = new MatrixRTCSession(client, room, {
application,
id,
});
const slot = { application, id };
const rtcSession = new MatrixRTCSession(
client,
room,
MatrixRTCSession.sessionMembershipsForSlot(room, slot),
slot,
);
const callViewModel = createCallViewModel$(
scope,
rtcSession,