diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/admin_console/admin_sidebar.jsx | 27 | ||||
-rw-r--r-- | webapp/components/channel_header.jsx | 3 | ||||
-rw-r--r-- | webapp/components/user_profile.jsx | 3 | ||||
-rw-r--r-- | webapp/components/user_settings/user_settings_advanced.jsx | 3 |
4 files changed, 15 insertions, 21 deletions
diff --git a/webapp/components/admin_console/admin_sidebar.jsx b/webapp/components/admin_console/admin_sidebar.jsx index 4de0cf007..f39bb8b6b 100644 --- a/webapp/components/admin_console/admin_sidebar.jsx +++ b/webapp/components/admin_console/admin_sidebar.jsx @@ -193,7 +193,6 @@ export default class AdminSidebar extends React.Component { let samlSettings = null; let clusterSettings = null; let complianceSettings = null; - let webrtcSettings = null; let license = null; let audits = null; @@ -270,20 +269,6 @@ export default class AdminSidebar extends React.Component { ); } - if (global.window.mm_license.Webrtc === 'true') { - webrtcSettings = ( - <AdminSidebarSection - name='webrtc' - title={ - <FormattedMessage - id='admin.sidebar.webrtc' - defaultMessage='WebRTC (Beta)' - /> - } - /> - ); - } - oauthSettings = ( <AdminSidebarSection name='oauth' @@ -370,6 +355,18 @@ export default class AdminSidebar extends React.Component { ); } + const webrtcSettings = ( + <AdminSidebarSection + name='webrtc' + title={ + <FormattedMessage + id='admin.sidebar.webrtc' + defaultMessage='WebRTC (Beta)' + /> + } + /> + ); + return ( <div className='admin-sidebar'> <AdminSidebarHeader/> diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx index dd0fd5b70..1ce7b4a0e 100644 --- a/webapp/components/channel_header.jsx +++ b/webapp/components/channel_header.jsx @@ -290,8 +290,7 @@ export default class ChannelHeader extends React.Component { const teammateId = Utils.getUserIdFromChannelName(channel); channelTitle = Utils.displayUsername(teammateId); - const webrtcEnabled = global.mm_config.EnableWebrtc === 'true' && global.mm_license.Webrtc === 'true' && - global.mm_config.EnableDeveloper === 'true' && userMedia && Utils.isFeatureEnabled(PreReleaseFeatures.WEBRTC_PREVIEW); + const webrtcEnabled = global.mm_config.EnableWebrtc === 'true' && userMedia && Utils.isFeatureEnabled(PreReleaseFeatures.WEBRTC_PREVIEW); if (webrtcEnabled) { const isOffline = UserStore.getStatus(contact.id) === UserStatuses.OFFLINE; diff --git a/webapp/components/user_profile.jsx b/webapp/components/user_profile.jsx index 911ae63dd..e69d917a3 100644 --- a/webapp/components/user_profile.jsx +++ b/webapp/components/user_profile.jsx @@ -90,8 +90,7 @@ export default class UserProfile extends React.Component { let webrtc; const userMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; - const webrtcEnabled = global.mm_config.EnableWebrtc === 'true' && global.mm_license.Webrtc === 'true' && - global.mm_config.EnableDeveloper === 'true' && userMedia && Utils.isFeatureEnabled(PreReleaseFeatures.WEBRTC_PREVIEW); + const webrtcEnabled = global.mm_config.EnableWebrtc === 'true' && userMedia && Utils.isFeatureEnabled(PreReleaseFeatures.WEBRTC_PREVIEW); if (webrtcEnabled && this.props.user.id !== this.state.currentUserId) { const isOnline = this.props.status !== UserStatuses.OFFLINE; diff --git a/webapp/components/user_settings/user_settings_advanced.jsx b/webapp/components/user_settings/user_settings_advanced.jsx index fe7b7bb5a..4346c952b 100644 --- a/webapp/components/user_settings/user_settings_advanced.jsx +++ b/webapp/components/user_settings/user_settings_advanced.jsx @@ -55,8 +55,7 @@ export default class AdvancedSettingsDisplay extends React.Component { let enabledFeatures = 0; for (const [name, value] of advancedSettings) { - const webrtcEnabled = global.mm_config.EnableWebrtc === 'true' && global.mm_license.Webrtc === 'true' && - global.mm_config.EnableDeveloper === 'true'; + const webrtcEnabled = global.mm_config.EnableWebrtc === 'true'; if (!webrtcEnabled) { preReleaseFeaturesKeys = preReleaseFeaturesKeys.filter((f) => f !== 'WEBRTC_PREVIEW'); |