Explicitly pass the MatrixRTC mode to CallViewModel

This commit is contained in:
Robin
2025-12-15 15:09:46 -05:00
parent e3b4ffb801
commit c7e9f1ce14
3 changed files with 5 additions and 1 deletions

View File

@@ -105,6 +105,7 @@ export function withCallViewModel(mode: MatrixRTCMode) {
options: CallViewModelOptions = {
encryptionSystem: { kind: E2eeType.PER_PARTICIPANT },
autoLeaveWhenOthersLeft: false,
matrixRTCMode$: constant(mode),
},
): void => {
let syncState = initialSyncState;
@@ -184,7 +185,6 @@ export function withCallViewModel(mode: MatrixRTCMode) {
}),
connectionState$,
windowSize$,
matrixRTCMode$: constant(mode),
},
raisedHands$,
reactions$,