Skip to content

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

[RN] Fix Android immersive mode when coming from the background

Saúl Ibarra Corretgé9b40572921f0
diff --git a/react/features/full-screen/middleware.js b/react/features/full-screen/middleware.js
index a76e55a8ec..c61aa41dae 100644
--- a/react/features/full-screen/middleware.js
+++ b/react/features/full-screen/middleware.js
@@ -31,17 +31,18 @@ MiddlewareRegistry.register(store => next => action => {
// Check if we just came back from the background and reenable full
// screen mode if necessary.
if (action.appState === 'active') {
- const conference = store.getState()['features/base/conference'];
+ const { conference, audioOnly }
+ = store.getState()['features/base/conference'];
- fullScreen = conference ? !conference.audioOnly : false;
+ fullScreen = conference ? !audioOnly : false;
}
break;
}
case CONFERENCE_WILL_JOIN: {
- const conference = store.getState()['features/base/conference'];
+ const { audioOnly } = store.getState()['features/base/conference'];
- fullScreen = !conference.audioOnly;
+ fullScreen = !audioOnly;
break;
}