1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-24 06:02:08 +03:00
This commit is contained in:
Matthew Hodgson
2016-07-18 01:39:24 +01:00
parent ebdac4ee50
commit f13bb5f656

View File

@ -413,14 +413,14 @@ module.exports = React.createClass({
var roomStatePreviewUrls = room.currentState.getStateEvents('org.matrix.room.preview_urls', ''); var roomStatePreviewUrls = room.currentState.getStateEvents('org.matrix.room.preview_urls', '');
if (roomStatePreviewUrls && roomStatePreviewUrls.disabled) { if (roomStatePreviewUrls && roomStatePreviewUrls.disabled) {
this.setState({ this.setState({
showUrlPreview: false; showUrlPreview: false
}); });
return; return;
} }
// otherwise, we assume they're on. // otherwise, we assume they're on.
this.setState({ this.setState({
showUrlPreview: true; showUrlPreview: true
}); });
}, },