You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Merge the two different widget utils files
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user