mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-11 21:12:31 +00:00
This fixes an issue where the user muted by focus is able to unmute themselves even when the sender limit has been reached.
14 lines
357 B
JavaScript
14 lines
357 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 { available, muted, unmuteBlocked } = state['features/base/media'].audio;
|
|
|
|
return !available || (muted && unmuteBlocked);
|
|
}
|