mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-15 20:47:46 +00:00
* 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.
14 lines
325 B
JavaScript
14 lines
325 B
JavaScript
// @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);
|
|
}
|