mirror of https://github.com/jitsi/jitsi-meet
* feat(conference) Impl audio/video mute disable when sender limit is reached. Jicofo sends a presence when the audio/video sender limit is reached in the conference. The client can then proceed to disable the audio and video mute buttons when this occurs. * squash: use a different action type and show notification.pull/10490/head jitsi-meet_6670
parent
d8487c25b2
commit
c7765cc1b7
@ -0,0 +1,13 @@ |
||||
// @flow
|
||||
|
||||
/** |
||||
* Indicates if the audio mute button is disabled or not. |
||||
* |
||||
* @param {Object} state - The state from the Redux store. |
||||
* @returns {boolean} |
||||
*/ |
||||
export function isAudioMuteButtonDisabled(state: Object) { |
||||
const { audio } = state['features/base/media']; |
||||
|
||||
return !(audio?.available && !audio?.blocked); |
||||
} |
Loading…
Reference in new issue