Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix import and naming

Robert Pintilii97b958e9eab2
diff --git a/react/features/filmstrip/components/web/Thumbnail.js b/react/features/filmstrip/components/web/Thumbnail.js
index 369916529f..3651fcd75f 100644
--- a/react/features/filmstrip/components/web/Thumbnail.js
+++ b/react/features/filmstrip/components/web/Thumbnail.js
@@ -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';
diff --git a/react/features/filmstrip/functions.native.js b/react/features/filmstrip/functions.native.js
index 5cb785093b..0eda00748c 100644
--- a/react/features/filmstrip/functions.native.js
+++ b/react/features/filmstrip/functions.native.js
@@ -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;
-}
diff --git a/react/features/filmstrip/functions.web.js b/react/features/filmstrip/functions.web.js
index 2e744cf18b..34e64e82e3 100644
--- a/react/features/filmstrip/functions.web.js
+++ b/react/features/filmstrip/functions.web.js
@@ -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.
*
diff --git a/react/features/filmstrip/subscriber.web.js b/react/features/filmstrip/subscriber.web.js
index 261251ea85..6fb1937308 100644
--- a/react/features/filmstrip/subscriber.web.js
+++ b/react/features/filmstrip/subscriber.web.js
@@ -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
diff --git a/react/features/large-video/actions.any.js b/react/features/large-video/actions.any.js
index 6a45b8455d..f530269e8e 100644
--- a/react/features/large-video/actions.any.js
+++ b/react/features/large-video/actions.any.js
@@ -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;
}
diff --git a/react/features/video-layout/functions.any.js b/react/features/video-layout/functions.any.js
index 18df104b3d..4a198cba29 100644
--- a/react/features/video-layout/functions.any.js
+++ b/react/features/video-layout/functions.any.js
@@ -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;
}