From 338a4db87f65b68a93548d38d263e74469867f30 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 27 Jun 2017 17:40:09 +0100 Subject: [PATCH] Only show apps drawer if matrix apps labs setting ids enabled --- src/components/views/rooms/AuxPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/AuxPanel.js b/src/components/views/rooms/AuxPanel.js index bc414d75c9..a50743a25d 100644 --- a/src/components/views/rooms/AuxPanel.js +++ b/src/components/views/rooms/AuxPanel.js @@ -20,7 +20,9 @@ import sdk from '../../../index'; import dis from "../../../dispatcher"; import ObjectUtils from '../../../ObjectUtils'; import AppsDrawer from './AppsDrawer'; -import { _t, _tJsx} from '../../../languageHandler'; +import { _t, _tJsx} from '../../../languageHandler'; +import UserSettingsStore from '../../../UserSettingsStore'; + module.exports = React.createClass({ displayName: 'AuxPanel', @@ -127,7 +129,7 @@ module.exports = React.createClass({ ); let appsDrawer = null; - if(this.props.showApps) { + if(UserSettingsStore.isFeatureEnabled('matrix_apps') && this.props.showApps) { appsDrawer =