You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Don't break the room settings page
A later commit will make the URL preview settings behave like the rest of the settings page. Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -28,6 +28,11 @@ module.exports = React.createClass({
|
||||
room: React.PropTypes.object,
|
||||
},
|
||||
|
||||
saveSettings: function() {
|
||||
// TODO: {Travis} move toggle logic here instead of being 'live'
|
||||
return [];
|
||||
},
|
||||
|
||||
render: function() {
|
||||
const SettingsCheckbox = sdk.getComponent("elements.SettingsCheckbox");
|
||||
const roomId = this.props.room.roomId;
|
||||
@@ -43,6 +48,7 @@ module.exports = React.createClass({
|
||||
);
|
||||
}
|
||||
|
||||
// TODO: {Travis} This needs to be an explicit true/false for "room" only.
|
||||
let previewsForRoom = null;
|
||||
if (SettingsStore.canSetValue("urlPreviewsEnabled", roomId, "room")) {
|
||||
previewsForRoom = (
|
||||
|
||||
Reference in New Issue
Block a user