1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

Update src/webrtc/call.ts

Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Šimon Brandner
2021-09-26 07:26:08 +02:00
committed by GitHub
parent 0f6a59ed98
commit 9264050f41

View File

@@ -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