Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(shared-video): Lint errors.
Hristo Terezov49fa243ef349
diff --git a/react/features/dynamic-branding/reducer.ts b/react/features/dynamic-branding/reducer.tsindex 7935ffa280..3ac03da2e3 100644--- a/react/features/dynamic-branding/reducer.ts+++ b/react/features/dynamic-branding/reducer.ts@@ -158,7 +158,7 @@ export interface IDynamicBrandingState {muiBrandedTheme?: boolean;premeetingBackground: string;showGiphyIntegration?: boolean;- urlWhitelist?: Array<string>+ urlWhitelist?: Array<string>;useDynamicBrandingData: boolean;virtualBackgrounds: Array<Image>;}diff --git a/react/features/shared-video/actions.any.ts b/react/features/shared-video/actions.any.tsindex 6b6002b4bd..6415ab1dd0 100644--- a/react/features/shared-video/actions.any.ts+++ b/react/features/shared-video/actions.any.ts@@ -3,7 +3,7 @@ import { getCurrentConference } from '../base/conference/functions';import { openDialog } from '../base/dialog/actions';import { getLocalParticipant } from '../base/participants/functions';-import {RESET_SHARED_VIDEO_STATUS, SET_SHARED_VIDEO_STATUS, SET_URL_WHITELIST} from './actionTypes';+import { RESET_SHARED_VIDEO_STATUS, SET_SHARED_VIDEO_STATUS, SET_URL_WHITELIST } from './actionTypes';import { SharedVideoDialog } from './components';import { isSharedVideoEnabled, isURLAllowedForSharedVideo } from './functions';@@ -130,6 +130,7 @@ export function toggleSharedVideo() {/*** Resets the status of the shared video.*+ *@param {Array<string>} urlWhitelist - The new whitelist to be set.* @returns {{* type: SET_SHARED_VIDEO_STATUS,* }}diff --git a/react/features/shared-video/functions.ts b/react/features/shared-video/functions.tsindex 9e052aca55..6ad563063b 100644--- a/react/features/shared-video/functions.ts+++ b/react/features/shared-video/functions.ts@@ -108,7 +108,7 @@ export function extractYoutubeIdOrURL(input: string) {export function isSharedVideoEnabled(stateful: IStateful) {const state = toState(stateful);- const { urlWhitelist } = toState(stateful)['features/shared-video'];+ const { urlWhitelist = [] } = toState(stateful)['features/shared-video'];const { disableThirdPartyRequests = false } = state['features/base/config'];return !disableThirdPartyRequests && urlWhitelist.length > 0;diff --git a/react/features/shared-video/reducer.ts b/react/features/shared-video/reducer.tsindex 8fe0b507a8..4c8008badd 100644--- a/react/features/shared-video/reducer.ts+++ b/react/features/shared-video/reducer.ts@@ -1,7 +1,12 @@import ReducerRegistry from '../base/redux/ReducerRegistry';-import {RESET_SHARED_VIDEO_STATUS, SET_DISABLE_BUTTON, SET_SHARED_VIDEO_STATUS, SET_URL_WHITELIST} from './actionTypes';-import {YOUTUBE_URL_DOMAIN} from "./constants";+import {+ RESET_SHARED_VIDEO_STATUS,+ SET_DISABLE_BUTTON,+ SET_SHARED_VIDEO_STATUS,+ SET_URL_WHITELIST+} from './actionTypes';+import { YOUTUBE_URL_DOMAIN } from './constants';const initialState = {};@@ -11,9 +16,9 @@ export interface ISharedVideoState {ownerId?: string;status?: string;time?: number;+ urlWhitelist?: Array<string>;videoUrl?: string;volume?: number;- urlWhitelist?: Array<string>}/**@@ -47,7 +52,7 @@ ReducerRegistry.register<ISharedVideoState>('features/shared-video',return {...state,urlWhitelist: [ YOUTUBE_URL_DOMAIN, ...action.urlWhitelist ]- }+ };}default: