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', '');
if (roomStatePreviewUrls && roomStatePreviewUrls.disabled) {
this.setState({
showUrlPreview: false;
showUrlPreview: false
});
return;
}
// otherwise, we assume they're on.
this.setState({
showUrlPreview: true;
showUrlPreview: true
});
},