diff --git a/react/features/mobile/full-screen/middleware.js b/react/features/mobile/full-screen/middleware.js index 6d73a99a5..e6b7e4a37 100644 --- a/react/features/mobile/full-screen/middleware.js +++ b/react/features/mobile/full-screen/middleware.js @@ -10,6 +10,7 @@ import { CONFERENCE_WILL_JOIN, SET_AUDIO_ONLY } from '../../base/conference'; +import { HIDE_DIALOG } from '../../base/dialog'; import { Platform } from '../../base/react'; import { MiddlewareRegistry } from '../../base/redux'; @@ -52,6 +53,14 @@ MiddlewareRegistry.register(store => next => action => { fullScreen = false; break; + case HIDE_DIALOG: { + const { audioOnly, conference } + = store.getState()['features/base/conference']; + + fullScreen = conference ? !audioOnly : false; + break; + } + case SET_AUDIO_ONLY: fullScreen = !action.audioOnly; break;