Skip to content

Commit cf2d8d2

Browse files
committed
Wrench createNewMatrixCall straight out of call
rather than importing browser-index
1 parent 6953aed commit cf2d8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CallHandler.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import {MatrixClientPeg} from './MatrixClientPeg';
5959
import PlatformPeg from './PlatformPeg';
6060
import Modal from './Modal';
6161
import { _t } from './languageHandler';
62-
import Matrix from 'matrix-js-sdk/src/browser-index';
62+
import { createNewMatrixCall } from 'matrix-js-sdk/src/webrtc/call';
6363
import dis from './dispatcher/dispatcher';
6464
import WidgetUtils from './utils/WidgetUtils';
6565
import WidgetEchoStore from './stores/WidgetEchoStore';
@@ -362,7 +362,7 @@ export default class CallHandler {
362362
) {
363363
Analytics.trackEvent('voip', 'placeCall', 'type', type);
364364
CountlyAnalytics.instance.trackStartCall(roomId, type === PlaceCallType.Video, false);
365-
const call = Matrix.createNewMatrixCall(MatrixClientPeg.get(), roomId);
365+
const call = createNewMatrixCall(MatrixClientPeg.get(), roomId);
366366
this.calls.set(roomId, call);
367367
this.setCallListeners(call);
368368
this.setCallAudioElement(call);

0 commit comments

Comments
 (0)