diff --git a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx
index af3770baa2..3a88b81f40 100755
--- a/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/nav-bar/settings-dropdown/component.jsx
@@ -110,6 +110,8 @@ const defaultProps = {
isBreakoutRoom: false,
};
+const ALLOW_FULLSCREEN = Meteor.settings.public.app.allowFullscreen;
+
class SettingsDropdown extends PureComponent {
constructor(props) {
super(props);
@@ -146,6 +148,8 @@ class SettingsDropdown extends PureComponent {
handleToggleFullscreen,
} = this.props;
+ if (noIOSFullscreen || !ALLOW_FULLSCREEN) return null;
+
let fullscreenLabel = intl.formatMessage(intlMessages.fullscreenLabel);
let fullscreenDesc = intl.formatMessage(intlMessages.fullscreenDesc);
let fullscreenIcon = 'fullscreen';
@@ -156,8 +160,6 @@ class SettingsDropdown extends PureComponent {
fullscreenIcon = 'exit_fullscreen';
}
- if (noIOSFullscreen) return null;
-
return (
);
- const shouldRenderLogoutOption = (isMeteorConnected && allowLogoutSetting) ? logoutOption : null;
+ const shouldRenderLogoutOption = (isMeteorConnected && allowLogoutSetting)
+ ? logoutOption
+ : null;
return _.compact([
this.getFullscreenItem(),