You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Make 'options' parameter optional
It's deprecated so generally nothing should be passing it
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user