Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(AOT): imports.

Hristo Terezovb5cef0594168
diff --git a/react/features/always-on-top/AudioMuteButton.js b/react/features/always-on-top/AudioMuteButton.js
index db03974b4e..85551e046a 100644
--- a/react/features/always-on-top/AudioMuteButton.js
+++ b/react/features/always-on-top/AudioMuteButton.js
@@ -1,7 +1,9 @@
// @flow
-import { AbstractAudioMuteButton } from '../base/toolbox';
-import type { AbstractButtonProps as Props } from '../base/toolbox';
+// We need to reference these files directly to avoid loading things that are not available
+// in this environment (e.g. JitsiMeetJS or interfaceConfig)
+import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton';
+import type { Props } from '../base/toolbox/components/AbstractButton';
const { api } = window.alwaysOnTop;
const logger = require('jitsi-meet-logger').getLogger(__filename);
diff --git a/react/features/always-on-top/HangupButton.js b/react/features/always-on-top/HangupButton.js
index e9490fc938..2254280536 100644
--- a/react/features/always-on-top/HangupButton.js
+++ b/react/features/always-on-top/HangupButton.js
@@ -1,7 +1,9 @@
// @flow
-import { AbstractHangupButton } from '../base/toolbox';
-import type { AbstractButtonProps as Props } from '../base/toolbox';
+// We need to reference these files directly to avoid loading things that are not available
+// in this environment (e.g. JitsiMeetJS or interfaceConfig)
+import AbstractHangupButton from '../base/toolbox/components/AbstractHangupButton';
+import type { Props } from '../base/toolbox/components/AbstractButton';
const { api } = window.alwaysOnTop;
diff --git a/react/features/always-on-top/VideoMuteButton.js b/react/features/always-on-top/VideoMuteButton.js
index c0ffb46184..874143bbe4 100644
--- a/react/features/always-on-top/VideoMuteButton.js
+++ b/react/features/always-on-top/VideoMuteButton.js
@@ -1,7 +1,9 @@
// @flow
-import { AbstractVideoMuteButton } from '../base/toolbox';
-import type { AbstractButtonProps as Props } from '../base/toolbox';
+// We need to reference these files directly to avoid loading things that are not available
+// in this environment (e.g. JitsiMeetJS or interfaceConfig)
+import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton';
+import type { Props } from '../base/toolbox/components/AbstractButton';
const { api } = window.alwaysOnTop;
const logger = require('jitsi-meet-logger').getLogger(__filename);