diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 181fd39ec..796509293 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -697,7 +697,7 @@ export class MatrixCall extends EventEmitter { } private shouldAnswerWithMediaType( - wantedValue: boolean, valueOfTheOtherSide: boolean, type: "audio" | "video", + wantedValue: boolean | undefined, valueOfTheOtherSide: boolean | undefined, type: "audio" | "video", ): boolean { if (wantedValue && !valueOfTheOtherSide) { // TODO: Figure out how to do this