From bc46609caa63baafa38cdc38d9ef275fe2977344 Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Thu, 26 Nov 2020 11:48:48 +0800 Subject: [PATCH] Don't log error when WebRTC not supported This function is *always* called when a MatrixClient is created, e.g. in an appservice. If the environment does not support WebRTC, this is not necessarily an error; it is expected in many situations. Fix a small typo Signed-off-by: Dexter Chua --- 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 1386460eb..bf35885a5 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1569,7 +1569,7 @@ export function setVideoInput(deviceId: string) { videoInput = deviceId; } 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"); + logger.info("No window or document object: WebRTC is not supported in this environment"); return null; }