|
@@ -4,13 +4,11 @@ import { translateToHTML } from '../base/i18n';
|
4
|
4
|
import { getLocalParticipant } from '../base/participants';
|
5
|
5
|
import { toState } from '../base/redux';
|
6
|
6
|
import { getBackendSafePath, getJitsiMeetGlobalNS } from '../base/util';
|
7
|
|
-import {
|
8
|
|
- areThereNotifications,
|
9
|
|
- showWarningNotification
|
10
|
|
-} from '../notifications';
|
11
|
|
-import { getOverlayToRender } from '../overlay';
|
|
7
|
+import { showWarningNotification } from '../notifications';
|
12
|
8
|
import { createRnnoiseProcessorPromise } from '../rnnoise';
|
13
|
9
|
|
|
10
|
+export * from './functions.any';
|
|
11
|
+
|
14
|
12
|
/**
|
15
|
13
|
* Returns the result of getWiFiStats from the global NS or does nothing
|
16
|
14
|
(returns empty result).
|
|
@@ -52,23 +50,6 @@ export function maybeShowSuboptimalExperienceNotification(dispatch, t) {
|
52
|
50
|
}
|
53
|
51
|
}
|
54
|
52
|
|
55
|
|
-/**
|
56
|
|
- * Tells whether or not the notifications should be displayed within
|
57
|
|
- * the conference feature based on the current Redux state.
|
58
|
|
- *
|
59
|
|
- * @param {Object|Function} stateful - The redux store state.
|
60
|
|
- * @returns {boolean}
|
61
|
|
- */
|
62
|
|
-export function shouldDisplayNotifications(stateful) {
|
63
|
|
- const state = toState(stateful);
|
64
|
|
- const isAnyOverlayVisible = Boolean(getOverlayToRender(state));
|
65
|
|
- const { calleeInfoVisible } = state['features/invite'];
|
66
|
|
-
|
67
|
|
- return areThereNotifications(state)
|
68
|
|
- && !isAnyOverlayVisible
|
69
|
|
- && !calleeInfoVisible;
|
70
|
|
-}
|
71
|
|
-
|
72
|
53
|
/**
|
73
|
54
|
* Returns an object aggregating the conference options.
|
74
|
55
|
*
|