diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index c9169e0685..8192f472dc 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1062,7 +1062,12 @@ module.exports = React.createClass({
right_panel =
break;
case this.PageTypes.UserSettings:
- page_element =
+ page_element =
right_panel =
break;
case this.PageTypes.CreateRoom:
diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js
index 4a044cb325..89972aebb8 100644
--- a/src/components/structures/UserSettings.js
+++ b/src/components/structures/UserSettings.js
@@ -54,11 +54,15 @@ module.exports = React.createClass({
onClose: React.PropTypes.func,
// The brand string given when creating email pushers
brand: React.PropTypes.string,
+
+ // True to show the 'labs' section of experimental features
+ enableLabs: React.PropTypes.bool,
},
getDefaultProps: function() {
return {
- onClose: function() {}
+ onClose: function() {},
+ enableLabs: true,
};
},
@@ -363,6 +367,9 @@ module.exports = React.createClass({
},
_renderLabs: function () {
+ // default to enabled if undefined
+ if (this.props.enableLabs === false) return null;
+
let features = LABS_FEATURES.map(feature => (