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.

functions.any.js 440B

1234567891011121314
  1. // @flow
  2. /**
  3. * Indicates if the audio mute button is disabled or not.
  4. *
  5. * @param {Object} state - The state from the Redux store.
  6. * @returns {boolean}
  7. */
  8. export function isAudioMuteButtonDisabled(state: Object) {
  9. const { available, muted, unmuteBlocked } = state['features/base/media'].audio;
  10. const { startSilent } = state['features/base/config'];
  11. return Boolean(!available || startSilent || (muted && unmuteBlocked));
  12. }