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
feat(mobile/navigation): remove already handled conditioning
Calin-Teodord85face4e5a6
diff --git a/react/features/mobile/navigation/components/RootNavigationContainer.tsx b/react/features/mobile/navigation/components/RootNavigationContainer.tsxindex 40bb24f559..838fb66f6e 100644--- a/react/features/mobile/navigation/components/RootNavigationContainer.tsx+++ b/react/features/mobile/navigation/components/RootNavigationContainer.tsx@@ -7,7 +7,6 @@ import { IReduxState, IStore } from '../../../app/types';import DialInSummary from '../../../invite/components/dial-in-summary/native/DialInSummary';import Prejoin from '../../../prejoin/components/native/Prejoin';import UnsafeRoomWarning from '../../../prejoin/components/native/UnsafeRoomWarning';-import { isUnsafeRoomWarningEnabled } from '../../../prejoin/functions.native';import VisitorsQueue from '../../../visitors/components/native/VisitorsQueue';// eslint-disable-next-line// @ts-ignore@@ -41,11 +40,6 @@ interface IProps {*/dispatch: IStore['dispatch'];- /**- * Is unsafe room warning available?- */- isUnsafeRoomWarningAvailable: boolean;-/*** Is welcome page available?*/@@ -53,7 +47,7 @@ interface IProps {}-const RootNavigationContainer = ({ dispatch, isUnsafeRoomWarningAvailable, isWelcomePageAvailable }: IProps) => {+const RootNavigationContainer = ({ dispatch, isWelcomePageAvailable }: IProps) => {const initialRouteName = isWelcomePageAvailable? screen.welcome.main : screen.connecting;const onReady = useCallback(() => {@@ -71,21 +65,14 @@ const RootNavigationContainer = ({ dispatch, isUnsafeRoomWarningAvailable, isWeltheme = { navigationContainerTheme as Theme }><RootStack.NavigatorinitialRouteName = { initialRouteName }>- {- isWelcomePageAvailable- && <>- <RootStack.Screen // @ts-ignore- component = { WelcomePage }- name = { screen.welcome.main }- options = { welcomeScreenOptions } />- <RootStack.Screen-- // @ts-ignore- component = { DialInSummary }- name = { screen.dialInSummary }- options = { dialInSummaryScreenOptions } />- </>- }+ <RootStack.Screen // @ts-ignore+ component = { WelcomePage }+ name = { screen.welcome.main }+ options = { welcomeScreenOptions } />+ <RootStack.Screen // @ts-ignore+ component = { DialInSummary }+ name = { screen.dialInSummary }+ options = { dialInSummaryScreenOptions } /><RootStack.Screencomponent = { ConnectingPage }name = { screen.connecting }@@ -94,13 +81,10 @@ const RootNavigationContainer = ({ dispatch, isUnsafeRoomWarningAvailable, isWelcomponent = { Prejoin }name = { screen.preJoin }options = { preJoinScreenOptions } />- {- isUnsafeRoomWarningAvailable- && <RootStack.Screen- component = { UnsafeRoomWarning }- name = { screen.unsafeRoomWarning }- options = { unsafeMeetingScreenOptions } />- }+ <RootStack.Screen+ component = { UnsafeRoomWarning }+ name = { screen.unsafeRoomWarning }+ options = { unsafeMeetingScreenOptions } /><RootStack.Screencomponent = { VisitorsQueue }name = { screen.visitorsQueue }@@ -122,7 +106,6 @@ const RootNavigationContainer = ({ dispatch, isUnsafeRoomWarningAvailable, isWel*/function mapStateToProps(state: IReduxState) {return {- isUnsafeRoomWarningAvailable: isUnsafeRoomWarningEnabled(state),isWelcomePageAvailable: isWelcomePageEnabled(state)};}