fix(breakout-rooms) disable recording and live-streaming

There is currently no way to directly join a breakout room, so Jibri won't know
what to do. This shall be revisited in the future.
This commit is contained in:
Saúl Ibarra Corretgé 2021-11-30 15:08:32 +01:00 committed by Дамян Минков
parent 58ef2974c9
commit ce35a88299
2 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import {
isLocalParticipantModerator
} from '../../../base/participants';
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { isInBreakoutRoom } from '../../../breakout-rooms/functions';
import { maybeShowPremiumFeatureDialog } from '../../../jaas/actions';
import { FEATURES } from '../../../jaas/constants';
import { getActiveSession } from '../../functions';
@ -167,6 +168,12 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
_tooltip = 'dialog.liveStreamingDisabledBecauseOfActiveRecordingTooltip';
}
// disable the button if we are in a breakout room.
if (isInBreakoutRoom(state)) {
_disabled = true;
visible = false;
}
return {
_disabled,
_isLiveStreamRunning: Boolean(

View File

@ -12,6 +12,7 @@ import {
isLocalParticipantModerator
} from '../../../base/participants';
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import { isInBreakoutRoom } from '../../../breakout-rooms/functions';
import { maybeShowPremiumFeatureDialog } from '../../../jaas/actions';
import { FEATURES } from '../../../jaas/constants';
import { getActiveSession } from '../../functions';
@ -176,6 +177,12 @@ export function _mapStateToProps(state: Object, ownProps: Props): Object {
_tooltip = 'dialog.recordingDisabledBecauseOfActiveLiveStreamingTooltip';
}
// disable the button if we are in a breakout room.
if (isInBreakoutRoom(state)) {
_disabled = true;
visible = false;
}
return {
_disabled,
_isRecordingRunning: Boolean(getActiveSession(state, JitsiRecordingConstants.mode.FILE)),