Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415161718 |
- import { IStateful } from '../base/app/types';
- import { toState } from '../base/redux/functions';
- import { areThereNotifications } from '../notifications/functions';
-
-
- /**
- * 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: IStateful) {
- const state = toState(stateful);
- const { calleeInfoVisible } = state['features/invite'];
-
- return areThereNotifications(state) && !calleeInfoVisible;
- }
|