1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Merge the two different widget utils files

This commit is contained in:
David Baker
2018-06-26 11:52:21 +01:00
parent 069080e7ed
commit 0f2c47937c
5 changed files with 85 additions and 99 deletions

View File

@ -62,7 +62,6 @@ import dis from './dispatcher';
import { showUnknownDeviceDialogForCalls } from './cryptodevices';
import SettingsStore from "./settings/SettingsStore";
import WidgetUtils from './WidgetUtils';
import { getRoomWidgets } from './utils/widgets';
global.mxCalls = {
//room_id: MatrixCall
@ -414,7 +413,7 @@ function _startCallApp(roomId, type) {
return;
}
const currentJitsiWidgets = getRoomWidgets(room).filter((ev) => {
const currentJitsiWidgets = WidgetUtils.getRoomWidgets(room).filter((ev) => {
return ev.getContent().type == 'jitsi';
});
if (currentJitsiWidgets.length > 0) {