Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Fixes video unmuting in case of av moderation.

damencho4ffc2bca5f5b
diff --git a/conference.js b/conference.js
index 02a1f61860..64a6cc0686 100644
--- a/conference.js
+++ b/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 => {