Fix import and naming

This commit is contained in:
Robert Pintilii 2022-04-21 09:15:34 +03:00 committed by Hristo Terezov
parent b00fc92ee6
commit 97b958e9ea
6 changed files with 8 additions and 27 deletions

View File

@ -43,11 +43,11 @@ import {
computeDisplayModeFromInput,
getActiveParticipantsIds,
getDisplayModeInput,
getThumbnailTypeFromLayout,
isVideoPlayable,
showGridInVerticalView,
isStageFilmstripAvailable
isStageFilmstripAvailable,
showGridInVerticalView
} from '../../functions';
import { getThumbnailTypeFromLayout } from '../../functions.web';
import FakeScreenShareParticipant from './FakeScreenShareParticipant';
import ThumbnailAudioIndicator from './ThumbnailAudioIndicator';

View File

@ -120,12 +120,3 @@ export function isStageFilmstripAvailable() {
export function isStageFilmstripEnabled() {
return false;
}
/**
* Whether the stage filmstrip should be displayed or not.
*
* @returns {boolean}
*/
export function shouldDisplayStageFilmstrip() {
return false;
}

View File

@ -722,16 +722,6 @@ export function isStageFilmstripAvailable(state, minParticipantCount = 0) {
&& activeParticipants.length >= minParticipantCount;
}
/**
* Get whether or not the stage filmstrip should be displayed.
*
* @param {Object} state - Redux state.
* @returns {boolean}
*/
export function shouldDisplayStageFilmstrip(state) {
return isStageFilmstripAvailable(state, 2);
}
/**
* Whether the stage filmstrip is disabled or not.
*

View File

@ -12,12 +12,12 @@ import { setOverflowDrawer } from '../toolbox/actions.web';
import { getCurrentLayout, shouldDisplayTileView, LAYOUTS } from '../video-layout';
import {
clearStageParticipants,
setHorizontalViewDimensions,
setStageFilmstripViewDimensions,
setTileViewDimensions,
setVerticalViewDimensions
} from './actions';
import { clearStageParticipants } from './actions.web';
import {
ASPECT_RATIO_BREAKPOINT,
DISPLAY_DRAWER_THRESHOLD

View File

@ -9,7 +9,7 @@ import {
getPinnedParticipant,
getRemoteParticipants
} from '../base/participants';
import { isStageFilmstripAvailable, shouldDisplayStageFilmstrip } from '../filmstrip/functions';
import { isStageFilmstripAvailable } from '../filmstrip/functions';
import {
SELECT_LARGE_VIDEO_PARTICIPANT,
@ -30,7 +30,7 @@ export function selectParticipantInLargeVideo(participant: ?string) {
return (dispatch: Dispatch<any>, getState: Function) => {
const state = getState();
if (shouldDisplayStageFilmstrip(state)) {
if (isStageFilmstripAvailable(state, 2)) {
return;
}

View File

@ -7,7 +7,7 @@ import {
getParticipantCount,
pinParticipant
} from '../base/participants';
import { shouldDisplayStageFilmstrip } from '../filmstrip/functions.web';
import { isStageFilmstripAvailable } from '../filmstrip/functions';
import { isVideoPlaying } from '../shared-video/functions';
import { VIDEO_QUALITY_LEVELS } from '../video-quality/constants';
@ -41,7 +41,7 @@ export function getCurrentLayout(state: Object) {
if (shouldDisplayTileView(state)) {
return LAYOUTS.TILE_VIEW;
} else if (interfaceConfig.VERTICAL_FILMSTRIP) {
if (shouldDisplayStageFilmstrip(state)) {
if (isStageFilmstripAvailable(state, 2)) {
return LAYOUTS.STAGE_FILMSTRIP_VIEW;
}