You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }