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
redux: refactor loading of middlewares and reducers
Saúl Ibarra Corretgé6e679f952f93
diff --git a/Makefile b/Makefileindex 871d1b7583..4cbbdfea72 100644--- a/Makefile+++ b/Makefile@@ -82,7 +82,7 @@ deploy-local:.NOTPARALLEL:dev: deploy-init deploy-css deploy-rnnoise-binary deploy-lib-jitsi-meet deploy-libflac- $(WEBPACK_DEV_SERVER)+ $(WEBPACK_DEV_SERVER) --detect-circular-depssource-package:mkdir -p source_package/jitsi-meet/css && \diff --git a/conference.js b/conference.jsindex 5e1dcd52c4..4e266bdc32 100644--- a/conference.js+++ b/conference.js@@ -22,7 +22,7 @@ import {maybeRedirectToWelcomePage,redirectToStaticPage,reloadWithStoredParams-} from './react/features/app';+} from './react/features/app/actions';import {AVATAR_ID_COMMAND,AVATAR_URL_COMMAND,diff --git a/connection.js b/connection.jsindex 4652060aaa..8c92bfb977 100644--- a/connection.js+++ b/connection.js@@ -7,7 +7,7 @@ import AuthHandler from './modules/UI/authentication/AuthHandler';import {connectionEstablished,connectionFailed-} from './react/features/base/connection';+} from './react/features/base/connection/actions';import {isFatalJitsiConnectionError,JitsiConnectionErrors,diff --git a/modules/UI/authentication/LoginDialog.js b/modules/UI/authentication/LoginDialog.jsindex 9f56aaf541..fe39badbcf 100644--- a/modules/UI/authentication/LoginDialog.js+++ b/modules/UI/authentication/LoginDialog.js@@ -1,6 +1,6 @@/* global $, APP, config */-import { toJid } from '../../../react/features/base/connection';+import { toJid } from '../../../react/features/base/connection/functions';import {JitsiConnectionErrors} from '../../../react/features/base/lib-jitsi-meet';diff --git a/react/features/analytics/index.js b/react/features/analytics/index.jsindex ede2addc71..d45cd39bd6 100644--- a/react/features/analytics/index.js+++ b/react/features/analytics/index.js@@ -1,5 +1,2 @@export * from './AnalyticsEvents';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/app/components/AbstractApp.js b/react/features/app/components/AbstractApp.jsindex cd5bec43bb..2e42dce49e 100644--- a/react/features/app/components/AbstractApp.js+++ b/react/features/app/components/AbstractApp.js@@ -3,12 +3,8 @@import React, { Fragment } from 'react';import { BaseApp } from '../../base/app';-import '../../base/lastn'; // Register lastN middlewareimport { toURLString } from '../../base/util';-import '../../follow-me';import { OverlayContainer } from '../../overlay';-import '../../lobby'; // Import lobby function-import '../../rejoin'; // Enable rejoin analyticsimport { appNavigate } from '../actions';import { getDefaultURL } from '../functions';diff --git a/react/features/app/components/App.native.js b/react/features/app/components/App.native.jsindex 54aa783cc4..f0343253e8 100644--- a/react/features/app/components/App.native.js+++ b/react/features/app/components/App.native.js@@ -2,32 +2,21 @@import React from 'react';-import '../../analytics';-import '../../authentication';import { setColorScheme } from '../../base/color-scheme';import { DialogContainer } from '../../base/dialog';import { CALL_INTEGRATION_ENABLED, updateFlags } from '../../base/flags';-import '../../base/jwt';import { Platform } from '../../base/react';import { DimensionsDetector, clientResized } from '../../base/responsive-ui';import { updateSettings } from '../../base/settings';-import '../../google-api';-import '../../mobile/audio-mode';-import '../../mobile/back-button';-import '../../mobile/background';-import '../../mobile/call-integration';-import '../../mobile/external-api';-import '../../mobile/full-screen';-import '../../mobile/permissions';-import '../../mobile/picture-in-picture';-import '../../mobile/proximity';-import '../../mobile/wake-lock';-import '../../mobile/watchos';import logger from '../logger';import { AbstractApp } from './AbstractApp';import type { Props as AbstractAppProps } from './AbstractApp';+// Register middlewares and reducers.+import '../middlewares';+import '../reducers';+declare var __DEV__;/**diff --git a/react/features/app/components/App.web.js b/react/features/app/components/App.web.jsindex dad24fb107..e8e029ae9a 100644--- a/react/features/app/components/App.web.js+++ b/react/features/app/components/App.web.js@@ -5,19 +5,13 @@ import React from 'react';import { DialogContainer } from '../../base/dialog';import { ChromeExtensionBanner } from '../../chrome-extension-banner';-import '../../base/user-interaction';-import '../../chat';-import '../../external-api';-import '../../no-audio-signal';-import '../../noise-detection';-import '../../power-monitor';-import '../../room-lock';-import '../../talk-while-muted';-import '../../video-layout';-import '../../old-client-notification';import { AbstractApp } from './AbstractApp';+// Register middlewares and reducers.+import '../middlewares';+import '../reducers';+/*** Root app {@code Component} on Web/React.*diff --git a/react/features/app/index.js b/react/features/app/index.jsdeleted file mode 100644index 46a00713e0..0000000000--- a/react/features/app/index.js+++ /dev/null@@ -1,7 +0,0 @@-// @flow--export * from './actions';-export * from './components';-export * from './functions';--import './middleware';diff --git a/react/features/app/middlewares.any.js b/react/features/app/middlewares.any.jsnew file mode 100644index 0000000000..019cae38e8--- /dev/null+++ b/react/features/app/middlewares.any.js@@ -0,0 +1,46 @@+// @flow++import '../analytics/middleware';+import '../base/conference/middleware';+import '../base/config/middleware';+import '../base/jwt/middleware';+import '../base/known-domains/middleware';+import '../base/lastn/middleware';+import '../base/lib-jitsi-meet/middleware';+import '../base/logging/middleware';+import '../base/media/middleware';+import '../base/net-info/middleware';+import '../base/participants/middleware';+import '../base/redux/middleware';+import '../base/responsive-ui/middleware';+import '../base/settings/middleware';+import '../base/sounds/middleware';+import '../base/testing/middleware';+import '../base/tracks/middleware';+import '../base/user-interaction/middleware';+import '../calendar-sync/middleware';+import '../chat/middleware';+import '../conference/middleware';+import '../connection-indicator/middleware';+import '../deep-linking/middleware';+import '../device-selection/middleware';+import '../display-name/middleware';+import '../etherpad/middleware';+import '../filmstrip/middleware';+import '../follow-me/middleware';+import '../invite/middleware';+import '../large-video/middleware';+import '../lobby/middleware';+import '../notifications/middleware';+import '../overlay/middleware';+import '../recent-list/middleware';+import '../recording/middleware';+import '../rejoin/middleware';+import '../room-lock/middleware';+import '../subtitles/middleware';+import '../toolbox/middleware';+import '../transcribing/middleware';+import '../video-layout/middleware';+import '../videosipgw/middleware';++import './middleware';diff --git a/react/features/app/middlewares.native.js b/react/features/app/middlewares.native.jsnew file mode 100644index 0000000000..23d969ec2f--- /dev/null+++ b/react/features/app/middlewares.native.js@@ -0,0 +1,18 @@+// @flow++import '../authentication/middleware';+import '../mobile/audio-mode/middleware';+import '../mobile/back-button/middleware';+import '../mobile/background/middleware';+import '../mobile/call-integration/middleware';+import '../mobile/external-api/middleware';+import '../mobile/full-screen/middleware';+import '../mobile/incoming-call/middleware';+import '../mobile/permissions/middleware';+import '../mobile/proximity/middleware';+import '../mobile/wake-lock/middleware';+import '../mobile/watchos/middleware';+import '../share-room/middleware';+import '../youtube-player/middleware';++import './middlewares.any';diff --git a/react/features/app/middlewares.web.js b/react/features/app/middlewares.web.jsnew file mode 100644index 0000000000..c21180d8d9--- /dev/null+++ b/react/features/app/middlewares.web.js@@ -0,0 +1,16 @@+// @flow++import '../base/devices/middleware';+import '../e2ee/middleware';+import '../external-api/middleware';+import '../keyboard-shortcuts/middleware';+import '../local-recording/middleware';+import '../no-audio-signal/middleware';+import '../noise-detection/middleware';+import '../old-client-notification/middleware';+import '../power-monitor/middleware';+import '../prejoin/middleware';+import '../shared-video/middleware';+import '../talk-while-muted/middleware';++import './middlewares.any';diff --git a/react/features/app/reducers.any.js b/react/features/app/reducers.any.jsnew file mode 100644index 0000000000..0723eb77e3--- /dev/null+++ b/react/features/app/reducers.any.js@@ -0,0 +1,49 @@+// @flow++import '../analytics/reducer';+import '../base/app/reducer';+import '../base/audio-only/reducer';+import '../base/color-scheme/reducer';+import '../base/conference/reducer';+import '../base/config/reducer';+import '../base/connection/reducer';+import '../base/dialog/reducer';+import '../base/flags/reducer';+import '../base/jwt/reducer';+import '../base/known-domains/reducer';+import '../base/lib-jitsi-meet/reducer';+import '../base/logging/reducer';+import '../base/media/reducer';+import '../base/modal/reducer';+import '../base/net-info/reducer';+import '../base/participants/reducer';+import '../base/responsive-ui/reducer';+import '../base/settings/reducer';+import '../base/sounds/reducer';+import '../base/testing/reducer';+import '../base/tracks/reducer';+import '../base/user-interaction/reducer';+import '../blur/reducer';+import '../calendar-sync/reducer';+import '../chat/reducer';+import '../deep-linking/reducer';+import '../device-selection/reducer';+import '../dropbox/reducer';+import '../etherpad/reducer';+import '../filmstrip/reducer';+import '../follow-me/reducer';+import '../google-api/reducer';+import '../invite/reducer';+import '../large-video/reducer';+import '../lobby/reducer';+import '../notifications/reducer';+import '../overlay/reducer';+import '../recent-list/reducer';+import '../recording/reducer';+import '../settings/reducer';+import '../subtitles/reducer';+import '../toolbox/reducer';+import '../transcribing/reducer';+import '../video-layout/reducer';+import '../videosipgw/reducer';+import '../welcome/reducer';diff --git a/react/features/app/reducers.native.js b/react/features/app/reducers.native.jsnew file mode 100644index 0000000000..8adaebd5b5--- /dev/null+++ b/react/features/app/reducers.native.js@@ -0,0 +1,12 @@+// @flow++import '../authentication/reducer';+import '../mobile/audio-mode/reducer';+import '../mobile/background/reducer';+import '../mobile/call-integration/reducer';+import '../mobile/full-screen/reducer';+import '../mobile/incoming-call/reducer';+import '../mobile/watchos/reducer';+import '../youtube-player/reducer';++import './reducers.any';diff --git a/react/features/app/reducers.web.js b/react/features/app/reducers.web.jsnew file mode 100644index 0000000000..28c988f2d6--- /dev/null+++ b/react/features/app/reducers.web.js@@ -0,0 +1,15 @@+// @flow++import '../base/devices/reducer';+import '../e2ee/reducer';+import '../feedback/reducer';+import '../local-recording/reducer';+import '../no-audio-signal/reducer';+import '../noise-detection/reducer';+import '../power-monitor/reducer';+import '../prejoin/reducer';+import '../screenshot-capture/reducer';+import '../shared-video/reducer';+import '../talk-while-muted/reducer';++import './reducers.any';diff --git a/react/features/authentication/actions.js b/react/features/authentication/actions.jsindex 51e5eaed42..2183fa3e4b 100644--- a/react/features/authentication/actions.js+++ b/react/features/authentication/actions.js@@ -2,7 +2,7 @@import type { Dispatch } from 'redux';-import { appNavigate } from '../app';+import { appNavigate } from '../app/actions';import { checkIfCanJoin, conferenceLeft } from '../base/conference';import { connectionFailed } from '../base/connection';import { openDialog } from '../base/dialog';diff --git a/react/features/authentication/index.js b/react/features/authentication/index.jsindex a29aa08e02..803dacd06c 100644--- a/react/features/authentication/index.js+++ b/react/features/authentication/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/authentication/middleware.js b/react/features/authentication/middleware.jsindex 29f36212f6..0f0cb3e7bd 100644--- a/react/features/authentication/middleware.js+++ b/react/features/authentication/middleware.js@@ -2,7 +2,7 @@import type { Dispatch } from 'redux';-import { appNavigate } from '../app';+import { appNavigate } from '../app/actions';import {CONFERENCE_FAILED,CONFERENCE_JOINED,diff --git a/react/features/base/app/index.js b/react/features/base/app/index.jsindex 5d564613e6..b845e8859c 100644--- a/react/features/base/app/index.js+++ b/react/features/base/app/index.js@@ -2,5 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './functions';--import './reducer';diff --git a/react/features/base/audio-only/index.js b/react/features/base/audio-only/index.jsindex f6aa63cd53..3d915f1aad 100644--- a/react/features/base/audio-only/index.js+++ b/react/features/base/audio-only/index.js@@ -2,5 +2,3 @@export * from './actions';export * from './actionTypes';--import './reducer';diff --git a/react/features/base/color-scheme/index.js b/react/features/base/color-scheme/index.jsindex fdc97c28a0..bdb92c87fe 100644--- a/react/features/base/color-scheme/index.js+++ b/react/features/base/color-scheme/index.js@@ -4,5 +4,3 @@ export * from './actions';export * from './actionTypes';export * from './functions';export { default as ColorSchemeRegistry } from './ColorSchemeRegistry';--import './reducer';diff --git a/react/features/base/conference/actions.js b/react/features/base/conference/actions.jsindex edfae3ee96..9043aa911d 100644--- a/react/features/base/conference/actions.js+++ b/react/features/base/conference/actions.js@@ -6,7 +6,7 @@ import {createStartMutedConfigurationEvent,sendAnalytics} from '../../analytics';-import { getName } from '../../app';+import { getName } from '../../app/functions';import { endpointMessageReceived } from '../../subtitles';import { JITSI_CONNECTION_CONFERENCE_KEY } from '../connection';import { JitsiConferenceEvents } from '../lib-jitsi-meet';diff --git a/react/features/base/conference/index.js b/react/features/base/conference/index.jsindex 39f1ee456a..a60a814b1e 100644--- a/react/features/base/conference/index.js+++ b/react/features/base/conference/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/config/index.js b/react/features/base/config/index.jsindex 4057a3ed68..9fbf5c252c 100644--- a/react/features/base/config/index.js+++ b/react/features/base/config/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export { default as CONFIG_WHITELIST } from './configWhitelist';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/connection/actions.native.js b/react/features/base/connection/actions.native.jsindex 1aceb3f31c..8fc45d93b9 100644--- a/react/features/base/connection/actions.native.js+++ b/react/features/base/connection/actions.native.js@@ -3,11 +3,8 @@import _ from 'lodash';import type { Dispatch } from 'redux';-import {- conferenceLeft,- conferenceWillLeave,- getCurrentConference-} from '../conference';+import { conferenceLeft, conferenceWillLeave } from '../conference/actions';+import { getCurrentConference } from '../conference/functions';import JitsiMeetJS, { JitsiConnectionEvents } from '../lib-jitsi-meet';import {getBackendSafeRoomName,diff --git a/react/features/base/connection/index.js b/react/features/base/connection/index.jsindex 125852addc..8548669120 100644--- a/react/features/base/connection/index.js+++ b/react/features/base/connection/index.js@@ -4,5 +4,3 @@ export * from './actions';export * from './actionTypes';export * from './constants';export * from './functions';--import './reducer';diff --git a/react/features/base/devices/index.js b/react/features/base/devices/index.jsindex 969667b3a4..08fe9014b1 100644--- a/react/features/base/devices/index.js+++ b/react/features/base/devices/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/dialog/index.js b/react/features/base/dialog/index.jsindex 5d564613e6..b845e8859c 100644--- a/react/features/base/dialog/index.js+++ b/react/features/base/dialog/index.js@@ -2,5 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './functions';--import './reducer';diff --git a/react/features/base/flags/index.js b/react/features/base/flags/index.jsindex daf82271a8..a60a814b1e 100644--- a/react/features/base/flags/index.js+++ b/react/features/base/flags/index.js@@ -2,5 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './constants';export * from './functions';--import './reducer';diff --git a/react/features/base/jwt/index.js b/react/features/base/jwt/index.jsindex 969667b3a4..08fe9014b1 100644--- a/react/features/base/jwt/index.js+++ b/react/features/base/jwt/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/known-domains/index.js b/react/features/base/known-domains/index.jsindex f3a2aac65c..e40f04336c 100644--- a/react/features/base/known-domains/index.js+++ b/react/features/base/known-domains/index.js@@ -1,5 +1,2 @@export * from './actions';export * from './actionTypes';--import './middleware';-import './reducer';diff --git a/react/features/base/known-domains/middleware.js b/react/features/base/known-domains/middleware.jsindex dc17be6058..e04cca9ac8 100644--- a/react/features/base/known-domains/middleware.js+++ b/react/features/base/known-domains/middleware.js@@ -1,6 +1,6 @@// @flow-import { getDefaultURL } from '../../app';+import { getDefaultURL } from '../../app/functions';import { APP_WILL_MOUNT } from '../app';import { SET_ROOM } from '../conference';import { MiddlewareRegistry } from '../redux';diff --git a/react/features/base/known-domains/reducer.js b/react/features/base/known-domains/reducer.jsindex 13d4786c44..9604bf8591 100644--- a/react/features/base/known-domains/reducer.js+++ b/react/features/base/known-domains/reducer.js@@ -1,6 +1,6 @@// @flow-import { APP_WILL_MOUNT } from '../app';+import { APP_WILL_MOUNT } from '../app/actionTypes';import { PersistenceRegistry, ReducerRegistry } from '../redux';import { ADD_KNOWN_DOMAINS } from './actionTypes';diff --git a/react/features/base/lastn/index.js b/react/features/base/lastn/index.jsdeleted file mode 100644index ae4bc5164c..0000000000--- a/react/features/base/lastn/index.js+++ /dev/null@@ -1,3 +0,0 @@-// @flow--import './middleware';diff --git a/react/features/base/lastn/middleware.js b/react/features/base/lastn/middleware.jsindex ea00ece5cc..73cb53d90d 100644--- a/react/features/base/lastn/middleware.js+++ b/react/features/base/lastn/middleware.js@@ -43,7 +43,7 @@ function _updateLastN({ getState }) {const state = getState();const { conference } = state['features/base/conference'];const { enabled: audioOnly } = state['features/base/audio-only'];- const { appState } = state['features/background'];+ const { appState } = state['features/background'] || {};const { enabled: filmStripEnabled } = state['features/filmstrip'];const config = state['features/base/config'];@@ -56,7 +56,7 @@ function _updateLastN({ getState }) {const defaultLastN = typeof config.channelLastN === 'undefined' ? -1 : config.channelLastN;let lastN = defaultLastN;- if (appState !== 'active') {+ if (typeof appState !== 'undefined' && appState !== 'active') {lastN = 0;} else if (audioOnly) {const { screenShares, tileViewEnabled } = state['features/video-layout'];diff --git a/react/features/base/lib-jitsi-meet/index.js b/react/features/base/lib-jitsi-meet/index.jsindex 5d46e65579..309c192c35 100644--- a/react/features/base/lib-jitsi-meet/index.js+++ b/react/features/base/lib-jitsi-meet/index.js@@ -27,6 +27,3 @@ export const JitsiTrackEvents = JitsiMeetJS.events.track;export * from './actions';export * from './actionTypes';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/logging/index.js b/react/features/base/logging/index.jsindex 969667b3a4..08fe9014b1 100644--- a/react/features/base/logging/index.js+++ b/react/features/base/logging/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/media/index.js b/react/features/base/media/index.jsindex 0a8f4ad7bb..b826983c44 100644--- a/react/features/base/media/index.js+++ b/react/features/base/media/index.js@@ -3,6 +3,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/modal/index.js b/react/features/base/modal/index.jsindex 04b78b6850..7fdd75c293 100644--- a/react/features/base/modal/index.js+++ b/react/features/base/modal/index.js@@ -1,7 +1,5 @@// @flow-import './reducer';-export * from './actions';export * from './actionTypes';export * from './components';diff --git a/react/features/base/net-info/index.js b/react/features/base/net-info/index.jsindex 79da85d3d0..3eb256deba 100644--- a/react/features/base/net-info/index.js+++ b/react/features/base/net-info/index.js@@ -1,4 +1 @@export * from './actionTypes';--import './middleware';-import './reducer';diff --git a/react/features/base/participants/index.js b/react/features/base/participants/index.jsindex 0a8f4ad7bb..b826983c44 100644--- a/react/features/base/participants/index.js+++ b/react/features/base/participants/index.js@@ -3,6 +3,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/responsive-ui/index.js b/react/features/base/responsive-ui/index.jsindex 2bf2602369..291539e5c2 100644--- a/react/features/base/responsive-ui/index.js+++ b/react/features/base/responsive-ui/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './constants';--import './middleware';-import './reducer';diff --git a/react/features/base/settings/index.js b/react/features/base/settings/index.jsindex 39f1ee456a..a60a814b1e 100644--- a/react/features/base/settings/index.js+++ b/react/features/base/settings/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/settings/reducer.js b/react/features/base/settings/reducer.jsindex 14a667cd99..9e81470e51 100644--- a/react/features/base/settings/reducer.js+++ b/react/features/base/settings/reducer.js@@ -4,7 +4,7 @@ import { jitsiLocalStorage } from 'js-utils';import { randomHexString } from 'js-utils/random';import _ from 'lodash';-import { APP_WILL_MOUNT } from '../app';+import { APP_WILL_MOUNT } from '../app/actionTypes';import { browser } from '../lib-jitsi-meet';import { PersistenceRegistry, ReducerRegistry } from '../redux';import { assignIfDefined } from '../util';diff --git a/react/features/base/sounds/functions.ios.js b/react/features/base/sounds/functions.ios.jsindex bfdb5037e5..d086d82fb0 100644--- a/react/features/base/sounds/functions.ios.js+++ b/react/features/base/sounds/functions.ios.js@@ -1,4 +1,4 @@-import { getSdkBundlePath } from '../../app';+import { getSdkBundlePath } from '../../app/functions';/*** Returns the location of the sounds. On iOS it's the location of the SDKdiff --git a/react/features/base/sounds/index.js b/react/features/base/sounds/index.jsindex a29aa08e02..803dacd06c 100644--- a/react/features/base/sounds/index.js+++ b/react/features/base/sounds/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/base/testing/index.js b/react/features/base/testing/index.jsindex 65787823fa..8b45add519 100644--- a/react/features/base/testing/index.js+++ b/react/features/base/testing/index.js@@ -1,5 +1,2 @@export * from './components';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/tracks/index.js b/react/features/base/tracks/index.jsindex 969667b3a4..08fe9014b1 100644--- a/react/features/base/tracks/index.js+++ b/react/features/base/tracks/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/base/user-interaction/index.js b/react/features/base/user-interaction/index.jsdeleted file mode 100644index 200d254929..0000000000--- a/react/features/base/user-interaction/index.js+++ /dev/null@@ -1,2 +0,0 @@-import './middleware';-import './reducer';diff --git a/react/features/blur/index.js b/react/features/blur/index.jsindex 61438458ce..cc25e46aa0 100644--- a/react/features/blur/index.js+++ b/react/features/blur/index.js@@ -1,5 +1,3 @@export * from './actions';export * from './components';export * from './functions';--import './reducer';diff --git a/react/features/calendar-sync/actions.native.js b/react/features/calendar-sync/actions.native.jsindex c68a08e4c9..344a8d4ec2 100644--- a/react/features/calendar-sync/actions.native.js+++ b/react/features/calendar-sync/actions.native.js@@ -2,7 +2,7 @@import { generateRoomWithoutSeparator } from 'js-utils/random';import type { Dispatch } from 'redux';-import { getDefaultURL } from '../app';+import { getDefaultURL } from '../app/functions';import { openDialog } from '../base/dialog';import { refreshCalendar } from './actions';diff --git a/react/features/calendar-sync/components/CalendarListContent.native.js b/react/features/calendar-sync/components/CalendarListContent.native.jsindex e6e2d79902..c2c791ee6c 100644--- a/react/features/calendar-sync/components/CalendarListContent.native.js+++ b/react/features/calendar-sync/components/CalendarListContent.native.js@@ -7,7 +7,7 @@ import {createCalendarSelectedEvent,sendAnalytics} from '../../analytics';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import { getLocalizedDateFormatter, translate } from '../../base/i18n';import { NavigateSectionList } from '../../base/react';import { connect } from '../../base/redux';diff --git a/react/features/calendar-sync/components/CalendarListContent.web.js b/react/features/calendar-sync/components/CalendarListContent.web.jsindex 646b42e943..898a950f41 100644--- a/react/features/calendar-sync/components/CalendarListContent.web.js+++ b/react/features/calendar-sync/components/CalendarListContent.web.js@@ -7,7 +7,7 @@ import {createCalendarSelectedEvent,sendAnalytics} from '../../analytics';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import { MeetingsList } from '../../base/react';import { connect } from '../../base/redux';diff --git a/react/features/calendar-sync/components/ConferenceNotification.native.js b/react/features/calendar-sync/components/ConferenceNotification.native.jsindex e9cd4ae9ea..2596a4984f 100644--- a/react/features/calendar-sync/components/ConferenceNotification.native.js+++ b/react/features/calendar-sync/components/ConferenceNotification.native.js@@ -3,7 +3,7 @@import React, { Component } from 'react';import { Text, TouchableOpacity, View } from 'react-native';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import { getURLWithoutParamsNormalized } from '../../base/connection';import { getLocalizedDateFormatter, translate } from '../../base/i18n';import { Icon, IconNotificationJoin } from '../../base/icons';diff --git a/react/features/calendar-sync/index.js b/react/features/calendar-sync/index.jsindex 2ab7a37f66..5d78a5f0de 100644--- a/react/features/calendar-sync/index.js+++ b/react/features/calendar-sync/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './components';export * from './constants';export { isCalendarEnabled } from './functions';--import './middleware';-import './reducer';diff --git a/react/features/chat/index.js b/react/features/chat/index.jsindex 2bf2602369..291539e5c2 100644--- a/react/features/chat/index.js+++ b/react/features/chat/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './constants';--import './middleware';-import './reducer';diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.jsindex e647555d55..b3cd5984fb 100644--- a/react/features/conference/components/native/Conference.js+++ b/react/features/conference/components/native/Conference.js@@ -4,7 +4,7 @@ import React from 'react';import { NativeModules, SafeAreaView, StatusBar } from 'react-native';import LinearGradient from 'react-native-linear-gradient';-import { appNavigate } from '../../../app';+import { appNavigate } from '../../../app/actions';import { PIP_ENABLED, getFeatureFlag } from '../../../base/flags';import { Container, LoadingIndicator, TintedView } from '../../../base/react';import { connect } from '../../../base/redux';diff --git a/react/features/conference/index.js b/react/features/conference/index.jsindex 01943cd7f2..7cd20acdfd 100644--- a/react/features/conference/index.js+++ b/react/features/conference/index.js@@ -1,5 +1,4 @@// @flow+export * from './actions';export * from './components';--import './middleware';diff --git a/react/features/conference/middleware.js b/react/features/conference/middleware.jsindex b5b5b7dab6..cf8fcf42fb 100644--- a/react/features/conference/middleware.js+++ b/react/features/conference/middleware.js@@ -1,5 +1,5 @@// @flow-import { appNavigate } from '../app';+import { appNavigate } from '../app/actions';import {CONFERENCE_JOINED,KICKED_OUT,diff --git a/react/features/connection-indicator/index.js b/react/features/connection-indicator/index.jsindex 71c314d9da..d309bedc1e 100644--- a/react/features/connection-indicator/index.js+++ b/react/features/connection-indicator/index.js@@ -3,5 +3,3 @@export * from './components';export { default as statsEmitter } from './statsEmitter';--import './middleware';diff --git a/react/features/deep-linking/actions.js b/react/features/deep-linking/actions.jsindex 5dc4c0fa4c..54f5f249b3 100644--- a/react/features/deep-linking/actions.js+++ b/react/features/deep-linking/actions.js@@ -2,7 +2,7 @@import type { Dispatch } from 'redux';-import { appNavigate } from '../app';+import { appNavigate } from '../app/actions';import { OPEN_DESKTOP_APP, OPEN_WEB_APP } from './actionTypes';diff --git a/react/features/deep-linking/index.js b/react/features/deep-linking/index.jsindex c19d5eb7b9..484b71595f 100644--- a/react/features/deep-linking/index.js+++ b/react/features/deep-linking/index.js@@ -1,4 +1 @@export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/deep-linking/middleware.js b/react/features/deep-linking/middleware.jsindex 6e4111c7f5..814436c075 100644--- a/react/features/deep-linking/middleware.js+++ b/react/features/deep-linking/middleware.js@@ -11,7 +11,6 @@ import { openDesktopApp } from './functions';* @param {Store} store - The redux store.* @returns {Function}*/-// eslint-disable-next-line no-unused-varsMiddlewareRegistry.register(store => next => action => {switch (action.type) {case OPEN_DESKTOP_APP:diff --git a/react/features/device-selection/index.js b/react/features/device-selection/index.jsindex 44000a1a7b..b845e8859c 100644--- a/react/features/device-selection/index.js+++ b/react/features/device-selection/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/display-name/index.js b/react/features/display-name/index.jsindex 46a00713e0..c13d3e017d 100644--- a/react/features/display-name/index.js+++ b/react/features/display-name/index.js@@ -3,5 +3,3 @@export * from './actions';export * from './components';export * from './functions';--import './middleware';diff --git a/react/features/dropbox/index.js b/react/features/dropbox/index.jsindex 274d331371..b780791827 100644--- a/react/features/dropbox/index.js+++ b/react/features/dropbox/index.js@@ -1,4 +1,2 @@export * from './actions';export * from './functions.any';--import './reducer';diff --git a/react/features/e2ee/index.js b/react/features/e2ee/index.jsindex a29aa08e02..803dacd06c 100644--- a/react/features/e2ee/index.js+++ b/react/features/e2ee/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/etherpad/index.js b/react/features/etherpad/index.jsindex 0a8f4ad7bb..b826983c44 100644--- a/react/features/etherpad/index.js+++ b/react/features/etherpad/index.js@@ -3,6 +3,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/external-api/index.js b/react/features/external-api/index.jsdeleted file mode 100644index eec6b85ef4..0000000000--- a/react/features/external-api/index.js+++ /dev/null@@ -1,2 +0,0 @@-import './middleware';-import './subscriber';diff --git a/react/features/external-api/middleware.js b/react/features/external-api/middleware.jsindex a9d41ea4bc..bfd45e4335 100644--- a/react/features/external-api/middleware.js+++ b/react/features/external-api/middleware.js@@ -23,6 +23,8 @@ import { appendSuffix } from '../display-name';import { SUBMIT_FEEDBACK_ERROR, SUBMIT_FEEDBACK_SUCCESS } from '../feedback';import { SET_FILMSTRIP_VISIBLE } from '../filmstrip';+import './subscriber';+declare var APP: Object;declare var interfaceConfig: Object;diff --git a/react/features/feedback/index.js b/react/features/feedback/index.jsindex b2e9c09f6c..803dacd06c 100644--- a/react/features/feedback/index.js+++ b/react/features/feedback/index.js@@ -1,5 +1,3 @@export * from './actions';export * from './actionTypes';export * from './components';--import './reducer';diff --git a/react/features/filmstrip/index.js b/react/features/filmstrip/index.jsindex 7689c0d793..b826983c44 100644--- a/react/features/filmstrip/index.js+++ b/react/features/filmstrip/index.js@@ -3,7 +3,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './reducer';-import './subscriber';-import './middleware';diff --git a/react/features/filmstrip/middleware.web.js b/react/features/filmstrip/middleware.web.jsindex 48d2d79149..6ec99b69c0 100644--- a/react/features/filmstrip/middleware.web.js+++ b/react/features/filmstrip/middleware.web.js@@ -13,6 +13,8 @@ import {import { SET_HORIZONTAL_VIEW_DIMENSIONS, SET_TILE_VIEW_DIMENSIONS } from './actionTypes';import { setHorizontalViewDimensions, setTileViewDimensions } from './actions';+import './subscriber.web';+/*** The middleware of the feature Filmstrip.*/diff --git a/react/features/filmstrip/subscriber.native.js b/react/features/filmstrip/subscriber.native.jsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/react/features/follow-me/index.js b/react/features/follow-me/index.jsindex 024c757add..484b71595f 100644--- a/react/features/follow-me/index.js+++ b/react/features/follow-me/index.js@@ -1,5 +1 @@export * from './functions';-export * from './middleware';-export * from './subscriber';--import './reducer';diff --git a/react/features/follow-me/middleware.js b/react/features/follow-me/middleware.jsindex 731b528ebf..f65f37a644 100644--- a/react/features/follow-me/middleware.js+++ b/react/features/follow-me/middleware.js@@ -1,6 +1,6 @@// @flow-import { CONFERENCE_WILL_JOIN } from '../base/conference';+import { CONFERENCE_WILL_JOIN } from '../base/conference/actionTypes';import {getParticipantById,getPinnedParticipant,@@ -19,6 +19,8 @@ import { FOLLOW_ME_COMMAND } from './constants';import { isFollowMeActive } from './functions';import logger from './logger';+import './subscriber';+declare var APP: Object;/**diff --git a/react/features/google-api/index.js b/react/features/google-api/index.jsindex 085a371714..4ab7407810 100644--- a/react/features/google-api/index.js+++ b/react/features/google-api/index.js@@ -4,5 +4,3 @@ export * from './actions';export * from './components';export * from './constants';export { default as googleApi } from './googleApi';--import './reducer';diff --git a/react/features/invite/index.js b/react/features/invite/index.jsindex 48450b4e0e..cc25e46aa0 100644--- a/react/features/invite/index.js+++ b/react/features/invite/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './components';export * from './functions';--import './reducer';-import './middleware';diff --git a/react/features/keyboard-shortcuts/index.js b/react/features/keyboard-shortcuts/index.jsindex a640fd3bf6..3c46ed49d1 100644--- a/react/features/keyboard-shortcuts/index.js+++ b/react/features/keyboard-shortcuts/index.js@@ -1,4 +1,2 @@export * from './actions';export * from './components';--import './middleware';diff --git a/react/features/large-video/index.js b/react/features/large-video/index.jsindex 12269a10f9..3c46ed49d1 100644--- a/react/features/large-video/index.js+++ b/react/features/large-video/index.js@@ -1,6 +1,2 @@export * from './actions';export * from './components';--import './middleware';-import './reducer';-import './subscriber';diff --git a/react/features/large-video/middleware.js b/react/features/large-video/middleware.jsindex fb8ed2e4ea..31a59ac8f7 100644--- a/react/features/large-video/middleware.js+++ b/react/features/large-video/middleware.js@@ -18,6 +18,8 @@ import {import { selectParticipant, selectParticipantInLargeVideo } from './actions';+import './subscriber';+/*** Middleware that catches actions related to participants and tracks and* dispatches an action to select a participant depicted by LargeVideo.diff --git a/react/features/lobby/actions.web.js b/react/features/lobby/actions.web.jsindex 07a061a579..ca52c29b4c 100644--- a/react/features/lobby/actions.web.js+++ b/react/features/lobby/actions.web.js@@ -2,7 +2,7 @@import { type Dispatch } from 'redux';-import { appNavigate, maybeRedirectToWelcomePage } from '../app';+import { appNavigate, maybeRedirectToWelcomePage } from '../app/actions';import { conferenceWillJoin, getCurrentConference, setPassword } from '../base/conference';import { hideDialog, openDialog } from '../base/dialog';import { getLocalParticipant } from '../base/participants';diff --git a/react/features/lobby/index.js b/react/features/lobby/index.jsindex e4e0b51e5a..68ddef9ba1 100644--- a/react/features/lobby/index.js+++ b/react/features/lobby/index.js@@ -1,6 +1,3 @@// @flow-import './middleware';-import './reducer';-export * from './components';diff --git a/react/features/local-recording/index.js b/react/features/local-recording/index.jsindex 049bb678d5..d83e6ef8a0 100644--- a/react/features/local-recording/index.js+++ b/react/features/local-recording/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './controller';--import './middleware';-import './reducer';diff --git a/react/features/local-recording/middleware.js b/react/features/local-recording/middleware.jsindex 8ef415b455..6b7fdc105f 100644--- a/react/features/local-recording/middleware.js+++ b/react/features/local-recording/middleware.js@@ -1,14 +1,14 @@/* @flow */import { createShortcutEvent, sendAnalytics } from '../analytics';-import { APP_WILL_UNMOUNT } from '../base/app';-import { CONFERENCE_JOINED } from '../base/conference';-import { toggleDialog } from '../base/dialog';+import { APP_WILL_UNMOUNT } from '../base/app/actionTypes';+import { CONFERENCE_JOINED } from '../base/conference/actionTypes';+import { toggleDialog } from '../base/dialog/actions';import { i18next } from '../base/i18n';-import { SET_AUDIO_MUTED } from '../base/media';+import { SET_AUDIO_MUTED } from '../base/media/actionTypes';import { MiddlewareRegistry } from '../base/redux';import { SETTINGS_UPDATED } from '../base/settings/actionTypes';-import { showNotification } from '../notifications';+import { showNotification } from '../notifications/actions';import { localRecordingEngaged, localRecordingUnengaged } from './actions';import { LocalRecordingInfoDialog } from './components';diff --git a/react/features/mobile/audio-mode/index.js b/react/features/mobile/audio-mode/index.jsindex daaa5d02a7..07635cbbc8 100644--- a/react/features/mobile/audio-mode/index.js+++ b/react/features/mobile/audio-mode/index.js@@ -1,4 +1 @@export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/mobile/back-button/index.js b/react/features/mobile/back-button/index.jsindex 9e4c5488ee..f80ffd3fc4 100644--- a/react/features/mobile/back-button/index.js+++ b/react/features/mobile/back-button/index.js@@ -1,5 +1,3 @@// @flowexport { default as BackButtonRegistry } from './BackButtonRegistry';--import './middleware';diff --git a/react/features/mobile/background/index.js b/react/features/mobile/background/index.jsindex f3a2aac65c..e40f04336c 100644--- a/react/features/mobile/background/index.js+++ b/react/features/mobile/background/index.js@@ -1,5 +1,2 @@export * from './actions';export * from './actionTypes';--import './middleware';-import './reducer';diff --git a/react/features/mobile/call-integration/CallKit.js b/react/features/mobile/call-integration/CallKit.jsindex 9b3f768301..ff4c24bb2e 100644--- a/react/features/mobile/call-integration/CallKit.js+++ b/react/features/mobile/call-integration/CallKit.js@@ -1,6 +1,6 @@import { NativeModules, NativeEventEmitter } from 'react-native';-import { getName } from '../../app';+import { getName } from '../../app/functions';/*** Thin wrapper around Apple's CallKit functionality.diff --git a/react/features/mobile/call-integration/index.js b/react/features/mobile/call-integration/index.jsdeleted file mode 100644index 200d254929..0000000000--- a/react/features/mobile/call-integration/index.js+++ /dev/null@@ -1,2 +0,0 @@-import './middleware';-import './reducer';diff --git a/react/features/mobile/call-integration/middleware.js b/react/features/mobile/call-integration/middleware.jsindex 815567f919..965fb3eb9f 100644--- a/react/features/mobile/call-integration/middleware.js+++ b/react/features/mobile/call-integration/middleware.js@@ -4,7 +4,7 @@ import { Alert, NativeModules, Platform } from 'react-native';import uuid from 'uuid';import { createTrackMutedEvent, sendAnalytics } from '../../analytics';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../../base/app';import { SET_AUDIO_ONLY } from '../../base/audio-only';import {diff --git a/react/features/mobile/external-api/index.js b/react/features/mobile/external-api/index.jsindex e975ed0e86..484b71595f 100644--- a/react/features/mobile/external-api/index.js+++ b/react/features/mobile/external-api/index.js@@ -1,3 +1 @@export * from './functions';--import './middleware';diff --git a/react/features/mobile/full-screen/index.js b/react/features/mobile/full-screen/index.jsdeleted file mode 100644index 200d254929..0000000000--- a/react/features/mobile/full-screen/index.js+++ /dev/null@@ -1,2 +0,0 @@-import './middleware';-import './reducer';diff --git a/react/features/mobile/incoming-call/index.js b/react/features/mobile/incoming-call/index.jsindex daaa5d02a7..07635cbbc8 100644--- a/react/features/mobile/incoming-call/index.js+++ b/react/features/mobile/incoming-call/index.js@@ -1,4 +1 @@export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/mobile/permissions/index.js b/react/features/mobile/permissions/index.jsindex e975ed0e86..484b71595f 100644--- a/react/features/mobile/permissions/index.js+++ b/react/features/mobile/permissions/index.js@@ -1,3 +1 @@export * from './functions';--import './middleware';diff --git a/react/features/mobile/proximity/index.js b/react/features/mobile/proximity/index.jsdeleted file mode 100644index d436892893..0000000000--- a/react/features/mobile/proximity/index.js+++ /dev/null@@ -1 +0,0 @@-import './middleware';diff --git a/react/features/mobile/wake-lock/index.js b/react/features/mobile/wake-lock/index.jsdeleted file mode 100644index d436892893..0000000000--- a/react/features/mobile/wake-lock/index.js+++ /dev/null@@ -1 +0,0 @@-import './middleware';diff --git a/react/features/mobile/watchos/index.js b/react/features/mobile/watchos/index.jsdeleted file mode 100644index 200d254929..0000000000--- a/react/features/mobile/watchos/index.js+++ /dev/null@@ -1,2 +0,0 @@-import './middleware';-import './reducer';diff --git a/react/features/mobile/watchos/middleware.js b/react/features/mobile/watchos/middleware.jsindex 336952cbda..75c5d61f8f 100644--- a/react/features/mobile/watchos/middleware.js+++ b/react/features/mobile/watchos/middleware.js@@ -3,7 +3,7 @@import { Platform } from 'react-native';import * as watch from 'react-native-watch-connectivity';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import { APP_WILL_MOUNT } from '../../base/app';import { CONFERENCE_JOINED } from '../../base/conference';import { getCurrentConferenceUrl } from '../../base/connection';diff --git a/react/features/no-audio-signal/index.js b/react/features/no-audio-signal/index.jsdeleted file mode 100644index d040422d06..0000000000--- a/react/features/no-audio-signal/index.js+++ /dev/null@@ -1,4 +0,0 @@-// @flow--import './middleware';-import './reducer';diff --git a/react/features/noise-detection/index.js b/react/features/noise-detection/index.jsdeleted file mode 100644index d040422d06..0000000000--- a/react/features/noise-detection/index.js+++ /dev/null@@ -1,4 +0,0 @@-// @flow--import './middleware';-import './reducer';diff --git a/react/features/notifications/index.js b/react/features/notifications/index.jsindex 2e85be6d3c..8a597c6ea5 100644--- a/react/features/notifications/index.js+++ b/react/features/notifications/index.js@@ -5,6 +5,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/old-client-notification/index.js b/react/features/old-client-notification/index.jsdeleted file mode 100644index d436892893..0000000000--- a/react/features/old-client-notification/index.js+++ /dev/null@@ -1 +0,0 @@-import './middleware';diff --git a/react/features/overlay/components/AbstractPageReloadOverlay.js b/react/features/overlay/components/AbstractPageReloadOverlay.jsindex fca34348ef..139a4900e9 100644--- a/react/features/overlay/components/AbstractPageReloadOverlay.js+++ b/react/features/overlay/components/AbstractPageReloadOverlay.js@@ -8,7 +8,7 @@ import {createPageReloadScheduledEvent,sendAnalytics} from '../../analytics';-import { reloadNow } from '../../app';+import { reloadNow } from '../../app/actions';import {isFatalJitsiConferenceError,isFatalJitsiConnectionErrordiff --git a/react/features/overlay/components/native/PageReloadOverlay.js b/react/features/overlay/components/native/PageReloadOverlay.jsindex e194b8d13f..0796470fc0 100644--- a/react/features/overlay/components/native/PageReloadOverlay.js+++ b/react/features/overlay/components/native/PageReloadOverlay.js@@ -3,7 +3,7 @@import React from 'react';import { Text } from 'react-native';-import { appNavigate, reloadNow } from '../../../app';+import { appNavigate, reloadNow } from '../../../app/actions';import { ColorSchemeRegistry } from '../../../base/color-scheme';import { ConfirmDialog } from '../../../base/dialog';import { translate } from '../../../base/i18n';diff --git a/react/features/overlay/components/web/ReloadButton.js b/react/features/overlay/components/web/ReloadButton.jsindex 58bdf96f80..effb37fa0d 100644--- a/react/features/overlay/components/web/ReloadButton.js+++ b/react/features/overlay/components/web/ReloadButton.js@@ -2,7 +2,7 @@import React, { Component } from 'react';-import { reloadNow } from '../../../app';+import { reloadNow } from '../../../app/actions';import { translate } from '../../../base/i18n';import { connect } from '../../../base/redux';diff --git a/react/features/overlay/index.js b/react/features/overlay/index.jsindex ff4db602c3..c13d3e017d 100644--- a/react/features/overlay/index.js+++ b/react/features/overlay/index.js@@ -3,6 +3,3 @@export * from './actions';export * from './components';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/power-monitor/index.js b/react/features/power-monitor/index.jsindex 47fff5db37..3d915f1aad 100644--- a/react/features/power-monitor/index.js+++ b/react/features/power-monitor/index.js@@ -2,6 +2,3 @@export * from './actions';export * from './actionTypes';--import './middleware';-import './reducer';diff --git a/react/features/prejoin/index.js b/react/features/prejoin/index.jsindex 65b9d3a890..5c58a5f3fa 100644--- a/react/features/prejoin/index.js+++ b/react/features/prejoin/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './functions';export { default as Prejoin } from './components/Prejoin';--import './middleware';-import './reducer';diff --git a/react/features/recent-list/components/AbstractRecentList.js b/react/features/recent-list/components/AbstractRecentList.jsindex f48115778f..f61e3a0050 100644--- a/react/features/recent-list/components/AbstractRecentList.js+++ b/react/features/recent-list/components/AbstractRecentList.js@@ -8,7 +8,7 @@ import {createRecentSelectedEvent,sendAnalytics} from '../../analytics';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import {AbstractPage,Container,diff --git a/react/features/recent-list/components/RecentList.native.js b/react/features/recent-list/components/RecentList.native.jsindex d737ebb8c9..4aa669d443 100644--- a/react/features/recent-list/components/RecentList.native.js+++ b/react/features/recent-list/components/RecentList.native.js@@ -3,7 +3,7 @@import React from 'react';import type { Dispatch } from 'redux';-import { getDefaultURL } from '../../app';+import { getDefaultURL } from '../../app/functions';import { translate } from '../../base/i18n';import { setActiveModalId } from '../../base/modal';import { NavigateSectionList, type Section } from '../../base/react';diff --git a/react/features/recent-list/index.js b/react/features/recent-list/index.jsindex daaa5d02a7..07635cbbc8 100644--- a/react/features/recent-list/index.js+++ b/react/features/recent-list/index.js@@ -1,4 +1 @@export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/recording/index.js b/react/features/recording/index.jsindex c95362f28f..286c5342fa 100644--- a/react/features/recording/index.js+++ b/react/features/recording/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './components';export * from './constants';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/rejoin/index.js b/react/features/rejoin/index.jsdeleted file mode 100644index d436892893..0000000000--- a/react/features/rejoin/index.js+++ /dev/null@@ -1 +0,0 @@-import './middleware';diff --git a/react/features/room-lock/actions.js b/react/features/room-lock/actions.jsindex a3cd588661..d6f0a37f92 100644--- a/react/features/room-lock/actions.js+++ b/react/features/room-lock/actions.js@@ -5,7 +5,7 @@ import type { Dispatch } from 'redux';import {appNavigate,maybeRedirectToWelcomePage-} from '../app';+} from '../app/actions';import {conferenceLeft,JITSI_CONFERENCE_URL_KEY,diff --git a/react/features/room-lock/index.js b/react/features/room-lock/index.jsindex d7ebc65366..7279934d83 100644--- a/react/features/room-lock/index.js+++ b/react/features/room-lock/index.js@@ -1,5 +1,3 @@export * from './actions';export * from './components';export * from './constants';--import './middleware';diff --git a/react/features/screenshot-capture/index.js b/react/features/screenshot-capture/index.jsindex f70f2a44f8..485f1b10af 100644--- a/react/features/screenshot-capture/index.js+++ b/react/features/screenshot-capture/index.js@@ -1,3 +1 @@export * from './actions';--import './reducer';diff --git a/react/features/settings/components/AbstractSettingsView.js b/react/features/settings/components/AbstractSettingsView.jsindex 35173f9215..9399ed6020 100644--- a/react/features/settings/components/AbstractSettingsView.js+++ b/react/features/settings/components/AbstractSettingsView.js@@ -3,7 +3,7 @@import { Component } from 'react';import type { Dispatch } from 'redux';-import { getDefaultURL } from '../../app';+import { getDefaultURL } from '../../app/functions';import { updateSettings } from '../../base/settings';/**diff --git a/react/features/settings/index.js b/react/features/settings/index.jsindex 0bacc21c50..b826983c44 100644--- a/react/features/settings/index.js+++ b/react/features/settings/index.js@@ -3,5 +3,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './reducer';diff --git a/react/features/share-room/index.js b/react/features/share-room/index.jsindex e72b2584af..e40f04336c 100644--- a/react/features/share-room/index.js+++ b/react/features/share-room/index.js@@ -1,4 +1,2 @@export * from './actions';export * from './actionTypes';--import './middleware';diff --git a/react/features/share-room/middleware.js b/react/features/share-room/middleware.jsindex 3763ca0095..c23ca0fac9 100644--- a/react/features/share-room/middleware.js+++ b/react/features/share-room/middleware.js@@ -2,7 +2,7 @@import { Share } from 'react-native';-import { getName } from '../app';+import { getName } from '../app/functions';import { MiddlewareRegistry } from '../base/redux';import { getShareInfoText } from '../invite';diff --git a/react/features/shared-video/index.js b/react/features/shared-video/index.jsindex f3a2aac65c..e40f04336c 100644--- a/react/features/shared-video/index.js+++ b/react/features/shared-video/index.js@@ -1,5 +1,2 @@export * from './actions';export * from './actionTypes';--import './middleware';-import './reducer';diff --git a/react/features/subtitles/index.js b/react/features/subtitles/index.jsindex a29aa08e02..803dacd06c 100644--- a/react/features/subtitles/index.js+++ b/react/features/subtitles/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/talk-while-muted/index.js b/react/features/talk-while-muted/index.jsdeleted file mode 100644index d040422d06..0000000000--- a/react/features/talk-while-muted/index.js+++ /dev/null@@ -1,4 +0,0 @@-// @flow--import './middleware';-import './reducer';diff --git a/react/features/toolbox/components/HangupButton.js b/react/features/toolbox/components/HangupButton.jsindex c182dba234..2b2d8911f5 100644--- a/react/features/toolbox/components/HangupButton.js+++ b/react/features/toolbox/components/HangupButton.js@@ -3,7 +3,7 @@import _ from 'lodash';import { createToolbarEvent, sendAnalytics } from '../../analytics';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import { disconnect } from '../../base/connection';import { translate } from '../../base/i18n';import { connect } from '../../base/redux';diff --git a/react/features/toolbox/index.js b/react/features/toolbox/index.jsindex 44000a1a7b..b845e8859c 100644--- a/react/features/toolbox/index.js+++ b/react/features/toolbox/index.js@@ -2,6 +2,3 @@ export * from './actions';export * from './actionTypes';export * from './components';export * from './functions';--import './middleware';-import './reducer';diff --git a/react/features/transcribing/index.js b/react/features/transcribing/index.jsindex 7f0ef0251d..3c46ed49d1 100644--- a/react/features/transcribing/index.js+++ b/react/features/transcribing/index.js@@ -1,5 +1,2 @@export * from './actions';export * from './components';--import './middleware';-import './reducer';diff --git a/react/features/video-layout/index.js b/react/features/video-layout/index.jsindex a1178fd2ba..b826983c44 100644--- a/react/features/video-layout/index.js+++ b/react/features/video-layout/index.js@@ -3,7 +3,3 @@ export * from './actionTypes';export * from './components';export * from './constants';export * from './functions';--import './middleware';-import './reducer';-import './subscriber';diff --git a/react/features/video-layout/middleware.any.js b/react/features/video-layout/middleware.any.jsindex 2f3675f42e..996b9cce32 100644--- a/react/features/video-layout/middleware.any.js+++ b/react/features/video-layout/middleware.any.js@@ -9,6 +9,8 @@ import { SET_DOCUMENT_EDITING_STATUS, toggleDocument } from '../etherpad';import { SET_TILE_VIEW } from './actionTypes';import { setTileView } from './actions';+import './subscriber';+/*** Middleware which intercepts actions and updates tile view related state.*diff --git a/react/features/video-quality/components/OverflowMenuVideoQualityItem.web.js b/react/features/video-quality/components/OverflowMenuVideoQualityItem.web.jsindex 5e643a5910..39c4612018 100644--- a/react/features/video-quality/components/OverflowMenuVideoQualityItem.web.js+++ b/react/features/video-quality/components/OverflowMenuVideoQualityItem.web.js@@ -2,7 +2,7 @@import React, { Component } from 'react';-import { VIDEO_QUALITY_LEVELS } from '../../base/conference';+import { VIDEO_QUALITY_LEVELS } from '../../base/conference/constants';import { translate } from '../../base/i18n';import {Icon,diff --git a/react/features/videosipgw/index.js b/react/features/videosipgw/index.jsindex dbf9c8839e..485f1b10af 100644--- a/react/features/videosipgw/index.js+++ b/react/features/videosipgw/index.js@@ -1,4 +1 @@export * from './actions';--import './middleware';-import './reducer';diff --git a/react/features/welcome/components/AbstractWelcomePage.js b/react/features/welcome/components/AbstractWelcomePage.jsindex acd4a7f183..b52a3525f1 100644--- a/react/features/welcome/components/AbstractWelcomePage.js+++ b/react/features/welcome/components/AbstractWelcomePage.js@@ -5,7 +5,7 @@ import { Component } from 'react';import type { Dispatch } from 'redux';import { createWelcomePageEvent, sendAnalytics } from '../../analytics';-import { appNavigate } from '../../app';+import { appNavigate } from '../../app/actions';import isInsecureRoomName from '../../base/util/isInsecureRoomName';import { isCalendarEnabled } from '../../calendar-sync';import { isRecentListEnabled } from '../../recent-list/functions';diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.jsindex 8272182b36..8dcac4e23b 100644--- a/react/features/welcome/components/WelcomePage.native.js+++ b/react/features/welcome/components/WelcomePage.native.js@@ -9,7 +9,7 @@ import {View} from 'react-native';-import { getName } from '../../app';+import { getName } from '../../app/functions';import { ColorSchemeRegistry } from '../../base/color-scheme';import { translate } from '../../base/i18n';import { Icon, IconMenu, IconWarning } from '../../base/icons';diff --git a/react/features/welcome/index.js b/react/features/welcome/index.jsindex 076f379b72..8b45add519 100644--- a/react/features/welcome/index.js+++ b/react/features/welcome/index.js@@ -1,4 +1,2 @@export * from './components';export * from './functions';--import './reducer';diff --git a/react/features/youtube-player/index.js b/react/features/youtube-player/index.jsindex a29aa08e02..803dacd06c 100644--- a/react/features/youtube-player/index.js+++ b/react/features/youtube-player/index.js@@ -1,6 +1,3 @@export * from './actions';export * from './actionTypes';export * from './components';--import './middleware';-import './reducer';diff --git a/react/index.native.js b/react/index.native.jsindex 87e363598f..763442988a 100644--- a/react/index.native.js+++ b/react/index.native.js@@ -7,7 +7,7 @@ import './features/mobile/polyfills';import React, { PureComponent } from 'react';import { AppRegistry } from 'react-native';-import { App } from './features/app';+import { App } from './features/app/components';import { _initLogging } from './features/base/logging/functions';import { IncomingCallApp } from './features/mobile/incoming-call';diff --git a/react/index.web.js b/react/index.web.jsindex 2e8d8dec7f..300d084198 100644--- a/react/index.web.js+++ b/react/index.web.js@@ -5,7 +5,7 @@ import ReactDOM from 'react-dom';import { getJitsiMeetTransport } from '../modules/transport';-import { App } from './features/app';+import { App } from './features/app/components';import { getLogger } from './features/base/logging/functions';import { Platform } from './features/base/react';diff --git a/webpack.config.js b/webpack.config.jsindex 083af74841..49719fc97b 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -193,7 +193,7 @@ module.exports = [entry: {'device_selection_popup_bundle': './react/features/settings/popup.js'},- performance: getPerformanceHints(700 * 1024)+ performance: getPerformanceHints(750 * 1024)}),Object.assign({}, config, {entry: {