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, computeDisplayModeFromInput,
getActiveParticipantsIds, getActiveParticipantsIds,
getDisplayModeInput, getDisplayModeInput,
getThumbnailTypeFromLayout,
isVideoPlayable, isVideoPlayable,
showGridInVerticalView, isStageFilmstripAvailable,
isStageFilmstripAvailable showGridInVerticalView
} from '../../functions'; } from '../../functions';
import { getThumbnailTypeFromLayout } from '../../functions.web';
import FakeScreenShareParticipant from './FakeScreenShareParticipant'; import FakeScreenShareParticipant from './FakeScreenShareParticipant';
import ThumbnailAudioIndicator from './ThumbnailAudioIndicator'; import ThumbnailAudioIndicator from './ThumbnailAudioIndicator';

View File

@ -120,12 +120,3 @@ export function isStageFilmstripAvailable() {
export function isStageFilmstripEnabled() { export function isStageFilmstripEnabled() {
return false; 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; && 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. * 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 { getCurrentLayout, shouldDisplayTileView, LAYOUTS } from '../video-layout';
import { import {
clearStageParticipants,
setHorizontalViewDimensions, setHorizontalViewDimensions,
setStageFilmstripViewDimensions, setStageFilmstripViewDimensions,
setTileViewDimensions, setTileViewDimensions,
setVerticalViewDimensions setVerticalViewDimensions
} from './actions'; } from './actions';
import { clearStageParticipants } from './actions.web';
import { import {
ASPECT_RATIO_BREAKPOINT, ASPECT_RATIO_BREAKPOINT,
DISPLAY_DRAWER_THRESHOLD DISPLAY_DRAWER_THRESHOLD

View File

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

View File

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