don't need this as we prevent unneeded updates in shouldComponentUpdate

pull/21833/head
Bruno Windels 2019-05-21 16:56:26 +02:00
parent 72c1725f98
commit 1a5bcb4908
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ module.exports = React.createClass({
calculateUrlPreview: function() {
//console.log("calculateUrlPreview: ShowUrlPreview for %s is %s", this.props.mxEvent.getId(), this.props.showUrlPreview);
if (this.props.showUrlPreview && !this.state.links.length) {
if (this.props.showUrlPreview) {
let links = this.findLinks(this.refs.content.children);
if (links.length) {
// de-dup the links (but preserve ordering)