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
chore(appState): default empty string state does not check conditions (#15240)
Calinteodor12b682992b7b
diff --git a/react/features/mobile/background/middleware.native.ts b/react/features/mobile/background/middleware.native.tsindex e57b0801a8..4a6a02175d 100644--- a/react/features/mobile/background/middleware.native.ts+++ b/react/features/mobile/background/middleware.native.ts@@ -24,6 +24,19 @@ MiddlewareRegistry.register(store => next => action => {const { dispatch } = store;_setAppStateListener(store, _onAppStateChange.bind(undefined, dispatch));++ // Because there is no change taking place when the app mounts,+ // we need to force registering the appState status.+ const appStateInterval = setInterval(() => {+ const { currentState } = AppState;++ if (currentState !== 'unknown') {+ clearInterval(appStateInterval);++ _onAppStateChange(dispatch, currentState);+ }+ }, 100);+break;}@@ -47,7 +60,7 @@ MiddlewareRegistry.register(store => next => action => {function _onAppStateChange(dispatch: IStore['dispatch'], appState: string) {dispatch(appStateChanged(appState));- logger.debug(`appState changed to: ${appState}`);+ logger.info(`appState changed to: ${appState}`);}/**