fix(av-moderation) mark as unsupported while in a breakout room

This commit is contained in:
Saúl Ibarra Corretgé 2022-05-19 10:41:29 +02:00 committed by Saúl Ibarra Corretgé
parent 8240c3703e
commit 6c1cb5d4be
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
import { MEDIA_TYPE, type MediaType } from '../base/media/constants';
import { isLocalParticipantModerator } from '../base/participants/functions';
import { isInBreakoutRoom } from '../breakout-rooms/functions';
import { MEDIA_TYPE_TO_WHITELIST_STORE_KEY, MEDIA_TYPE_TO_PENDING_STORE_KEY } from './constants';
@ -49,7 +50,7 @@ export const isEnabled = (mediaType: MediaType) => (state: Object) => isEnabledF
export const isSupported = () => (state: Object) => {
const { conference } = state['features/base/conference'];
return conference ? conference.isAVModerationSupported() : false;
return Boolean(!isInBreakoutRoom(state) && conference?.isAVModerationSupported());
};
/**