Ver código fonte

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

j8
Jean-François Alarie 4 anos atrás
pai
commit
927b40ec71
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      react/features/mobile/full-screen/middleware.js

+ 2
- 1
react/features/mobile/full-screen/middleware.js Ver arquivo

@@ -75,7 +75,8 @@ function _onImmersiveChange({ getState }) {
75 75
         const { enabled: audioOnly } = state['features/base/audio-only'];
76 76
         const conference = getCurrentConference(state);
77 77
         const dialogOpen = isAnyDialogOpen(state);
78
-        const fullScreen = conference ? !audioOnly && !dialogOpen : false;
78
+        const fullscreenEnabled = getFeatureFlag(state, FULLSCREEN_ENABLED, true);
79
+        const fullScreen = conference ? !audioOnly && !dialogOpen && fullscreenEnabled : false;
79 80
 
80 81
         _setFullScreen(fullScreen);
81 82
     }

Carregando…
Cancelar
Salvar