Only show apps drawer if matrix apps labs setting ids enabled
This commit is contained in:
parent
8dfd047f03
commit
338a4db87f
1 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,9 @@ import sdk from '../../../index';
|
||||||
import dis from "../../../dispatcher";
|
import dis from "../../../dispatcher";
|
||||||
import ObjectUtils from '../../../ObjectUtils';
|
import ObjectUtils from '../../../ObjectUtils';
|
||||||
import AppsDrawer from './AppsDrawer';
|
import AppsDrawer from './AppsDrawer';
|
||||||
import { _t, _tJsx} from '../../../languageHandler';
|
import { _t, _tJsx} from '../../../languageHandler';
|
||||||
|
import UserSettingsStore from '../../../UserSettingsStore';
|
||||||
|
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'AuxPanel',
|
displayName: 'AuxPanel',
|
||||||
|
@ -127,7 +129,7 @@ module.exports = React.createClass({
|
||||||
);
|
);
|
||||||
|
|
||||||
let appsDrawer = null;
|
let appsDrawer = null;
|
||||||
if(this.props.showApps) {
|
if(UserSettingsStore.isFeatureEnabled('matrix_apps') && this.props.showApps) {
|
||||||
appsDrawer = <AppsDrawer ref="appsDrawer"
|
appsDrawer = <AppsDrawer ref="appsDrawer"
|
||||||
room={this.props.room}
|
room={this.props.room}
|
||||||
userId={this.props.userId}
|
userId={this.props.userId}
|
||||||
|
|
Loading…
Reference in a new issue