From 927b40ec7156d284c67664fb76a585f620425018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Alarie?= <26170770+alariej@users.noreply.github.com> Date: Fri, 9 Apr 2021 14:05:16 +0200 Subject: [PATCH] fix(rn,full-screen) make sure immersive mode respects the fullscreen flag --- react/features/mobile/full-screen/middleware.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/react/features/mobile/full-screen/middleware.js b/react/features/mobile/full-screen/middleware.js index 990d06fa9..ea5fbf21c 100644 --- a/react/features/mobile/full-screen/middleware.js +++ b/react/features/mobile/full-screen/middleware.js @@ -75,7 +75,8 @@ function _onImmersiveChange({ getState }) { const { enabled: audioOnly } = state['features/base/audio-only']; const conference = getCurrentConference(state); const dialogOpen = isAnyDialogOpen(state); - const fullScreen = conference ? !audioOnly && !dialogOpen : false; + const fullscreenEnabled = getFeatureFlag(state, FULLSCREEN_ENABLED, true); + const fullScreen = conference ? !audioOnly && !dialogOpen && fullscreenEnabled : false; _setFullScreen(fullScreen); }