pull/21833/head
Matthew Hodgson 2016-07-18 01:39:24 +01:00
parent ebdac4ee50
commit f13bb5f656
1 changed files with 2 additions and 2 deletions

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
});
},