fix(rn,full-screen) make sure immersive mode respects the fullscreen flag

This commit is contained in:
Jean-François Alarie 2021-04-09 14:05:16 +02:00 committed by GitHub
parent 3bbfdb2846
commit 927b40ec71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}