From cf2d8d2f1f522bca03240eba71a7e900bf75f2ac Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 5 Nov 2020 17:59:02 +0000 Subject: [PATCH] Wrench createNewMatrixCall straight out of call rather than importing browser-index --- src/CallHandler.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index aefa66ecc5..710eded2cd 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -59,7 +59,7 @@ import {MatrixClientPeg} from './MatrixClientPeg'; import PlatformPeg from './PlatformPeg'; import Modal from './Modal'; import { _t } from './languageHandler'; -import Matrix from 'matrix-js-sdk/src/browser-index'; +import { createNewMatrixCall } from 'matrix-js-sdk/src/webrtc/call'; import dis from './dispatcher/dispatcher'; import WidgetUtils from './utils/WidgetUtils'; import WidgetEchoStore from './stores/WidgetEchoStore'; @@ -362,7 +362,7 @@ export default class CallHandler { ) { Analytics.trackEvent('voip', 'placeCall', 'type', type); CountlyAnalytics.instance.trackStartCall(roomId, type === PlaceCallType.Video, false); - const call = Matrix.createNewMatrixCall(MatrixClientPeg.get(), roomId); + const call = createNewMatrixCall(MatrixClientPeg.get(), roomId); this.calls.set(roomId, call); this.setCallListeners(call); this.setCallAudioElement(call);