fix: Fixes video unmuting in case of av moderation.

pull/13042/head jitsi-meet_8386
damencho 2 years ago committed by Дамян Минков
parent 79a252652c
commit 4ffc2bca5f
  1. 11
      conference.js

@ -1037,13 +1037,20 @@ export default {
return;
}
const state = APP.store.getState();
if (!mute
&& isUserInteractionRequiredForUnmute(APP.store.getState())) {
&& isUserInteractionRequiredForUnmute(state)) {
logger.error('Unmuting video requires user interaction');
return;
}
// check for A/V Moderation when trying to unmute and return early
if (!mute && shouldShowModeratedNotification(MEDIA_TYPE.VIDEO, state)) {
return;
}
// If not ready to modify track's state yet adjust the base/media
if (!this._localTracksInitialized) {
// This will only modify base/media.video.muted which is then synced
@ -1057,7 +1064,7 @@ export default {
return;
}
const localVideo = getLocalJitsiVideoTrack(APP.store.getState());
const localVideo = getLocalJitsiVideoTrack(state);
if (!localVideo && !mute && !this.isCreatingLocalTrack) {
const maybeShowErrorDialog = error => {

Loading…
Cancel
Save