fix minimize presentation button initial state

This commit is contained in:
Ramón Souza 2022-02-28 17:04:21 +00:00
parent 9a718128d7
commit f6997d66fa

View File

@ -51,7 +51,7 @@ const swapLayout = {
const setSwapLayout = (layoutContextDispatch) => {
const hidePresentation = getFromUserSettings('bbb_hide_presentation', LAYOUT_CONFIG.hidePresentation);
swapLayout.value = getFromUserSettings('bbb_auto_swap_layout', LAYOUT_CONFIG.autoSwapLayout);
swapLayout.value = getFromUserSettings('bbb_auto_swap_layout', LAYOUT_CONFIG.autoSwapLayout) || hidePresentation;
swapLayout.tracker.changed();
if (!hidePresentation) {
@ -78,7 +78,7 @@ export const shouldEnableSwapLayout = () => {
return true;
}
return !shouldShowScreenshare() && !shouldShowExternalVideo();
}
};
export const getSwapLayout = () => {
swapLayout.tracker.depend();