From 1e80491675a33f3723aed23c8fd84d98e675303d Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 7 Oct 2020 17:08:21 +0100 Subject: [PATCH] Make 'options' parameter optional It's deprecated so generally nothing should be passing it --- src/webrtc/call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index c988b60b4..2d468e684 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1261,7 +1261,7 @@ export function setVideoInput(deviceId: string) { videoInput = deviceId; } * since it's only possible to set this option on outbound calls. * @return {MatrixCall} the call or null if the browser doesn't support calling. */ -export function createNewMatrixCall(client: any, roomId: string, options: CallOpts) { +export function createNewMatrixCall(client: any, roomId: string, options?: CallOpts) { // typeof prevents Node from erroring on an undefined reference if (typeof(window) === 'undefined' || typeof(document) === 'undefined') { logger.error("No window or document object: WebRTC is not supported in this environement");