|
|
|
|
33
|
const { conference } = getConferenceState(state);
|
33
|
const { conference } = getConferenceState(state);
|
34
|
const participant = getParticipantById(state, id);
|
34
|
const participant = getParticipantById(state, id);
|
35
|
|
35
|
|
36
|
- const isAudioForceMuted = isForceMuted(participant, MEDIA_TYPE.AUDIO, state);
|
|
|
37
|
const isVideoForceMuted = isForceMuted(participant, MEDIA_TYPE.VIDEO, state);
|
36
|
const isVideoForceMuted = isForceMuted(participant, MEDIA_TYPE.VIDEO, state);
|
38
|
const isAudioModerationOn = isEnabledFromState(MEDIA_TYPE.AUDIO, state);
|
37
|
const isAudioModerationOn = isEnabledFromState(MEDIA_TYPE.AUDIO, state);
|
39
|
const isVideoModerationOn = isEnabledFromState(MEDIA_TYPE.VIDEO, state);
|
38
|
const isVideoModerationOn = isEnabledFromState(MEDIA_TYPE.VIDEO, state);
|
40
|
|
39
|
|
41
|
- if (!(isAudioModerationOn || isVideoModerationOn) || (isAudioModerationOn && isAudioForceMuted)) {
|
|
|
|
|
40
|
+ if (isAudioModerationOn || !isVideoModerationOn) {
|
42
|
conference.avModerationApprove(MEDIA_TYPE.AUDIO, id);
|
41
|
conference.avModerationApprove(MEDIA_TYPE.AUDIO, id);
|
43
|
}
|
42
|
}
|
44
|
if (isVideoModerationOn && isVideoForceMuted) {
|
43
|
if (isVideoModerationOn && isVideoForceMuted) {
|