fix(av-moderation) Stop screensharing and video on moderation start

When video moderation starts, stop screensharing and ignore if video was on when sharing started
This commit is contained in:
robertpin 2021-09-27 09:57:57 +03:00 committed by vp8x8
parent 823cab3851
commit 57083c174f
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ MiddlewareRegistry.register(store => next => action => {
} else if (jitsiTrack.isLocal() && !(jitsiTrack.videoType === VIDEO_TYPE.DESKTOP)) {
APP.conference.setVideoMuteStatus();
} else if (jitsiTrack.isLocal() && muted && jitsiTrack.videoType === VIDEO_TYPE.DESKTOP) {
store.dispatch(toggleScreensharing(false));
store.dispatch(toggleScreensharing(false, false, true));
} else {
APP.UI.setVideoMuted(participantID);
}