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.

functions.any.ts 621B

123456789101112131415161718
  1. import { IStateful } from '../base/app/types';
  2. import { toState } from '../base/redux/functions';
  3. import { areThereNotifications } from '../notifications/functions';
  4. /**
  5. * Tells whether or not the notifications should be displayed within
  6. * the conference feature based on the current Redux state.
  7. *
  8. * @param {Object|Function} stateful - The redux store state.
  9. * @returns {boolean}
  10. */
  11. export function shouldDisplayNotifications(stateful: IStateful) {
  12. const state = toState(stateful);
  13. const { calleeInfoVisible } = state['features/invite'];
  14. return areThereNotifications(state) && !calleeInfoVisible;
  15. }