From 1a5bcb49087591f9133dc31c7ff366bb1a52bd88 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 21 May 2019 16:56:26 +0200 Subject: [PATCH] don't need this as we prevent unneeded updates in shouldComponentUpdate --- src/components/views/messages/TextualBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index cd12c70f85..91a34fdfc5 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -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)