Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(native) add missing function
Tudor-Ovidiu Avrama270e4300a3f
diff --git a/react/features/conference/functions.any.js b/react/features/conference/functions.any.jsnew file mode 100644index 0000000000..ece236f316--- /dev/null+++ b/react/features/conference/functions.any.js@@ -0,0 +1,20 @@+import { toState } from '../base/redux';+import { areThereNotifications } from '../notifications';+import { getOverlayToRender } from '../overlay';++/**+ * Tells whether or not the notifications should be displayed within+ * the conference feature based on the current Redux state.+ *+ * @param {Object|Function} stateful - The redux store state.+ * @returns {boolean}+ */+export function shouldDisplayNotifications(stateful) {+ const state = toState(stateful);+ const isAnyOverlayVisible = Boolean(getOverlayToRender(state));+ const { calleeInfoVisible } = state['features/invite'];++ return areThereNotifications(state)+ && !isAnyOverlayVisible+ && !calleeInfoVisible;+}diff --git a/react/features/conference/functions.native.js b/react/features/conference/functions.native.jsindex e69de29bb2..fb2a6bc39a 100644--- a/react/features/conference/functions.native.js+++ b/react/features/conference/functions.native.js@@ -0,0 +1 @@+export * from './functions.any';diff --git a/react/features/conference/functions.web.js b/react/features/conference/functions.web.jsindex 25e3ee45a8..bac1fb2eb2 100644--- a/react/features/conference/functions.web.js+++ b/react/features/conference/functions.web.js@@ -4,13 +4,11 @@ import { translateToHTML } from '../base/i18n';import { getLocalParticipant } from '../base/participants';import { toState } from '../base/redux';import { getBackendSafePath, getJitsiMeetGlobalNS } from '../base/util';-import {- areThereNotifications,- showWarningNotification-} from '../notifications';-import { getOverlayToRender } from '../overlay';+import { showWarningNotification } from '../notifications';import { createRnnoiseProcessorPromise } from '../rnnoise';+export * from './functions.any';+/*** Returns the result of getWiFiStats from the global NS or does nothing(returns empty result).@@ -52,23 +50,6 @@ export function maybeShowSuboptimalExperienceNotification(dispatch, t) {}}-/**- * Tells whether or not the notifications should be displayed within- * the conference feature based on the current Redux state.- *- * @param {Object|Function} stateful - The redux store state.- * @returns {boolean}- */-export function shouldDisplayNotifications(stateful) {- const state = toState(stateful);- const isAnyOverlayVisible = Boolean(getOverlayToRender(state));- const { calleeInfoVisible } = state['features/invite'];-- return areThereNotifications(state)- && !isAnyOverlayVisible- && !calleeInfoVisible;-}-/*** Returns an object aggregating the conference options.*