mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
don't need this as we prevent unneeded updates in shouldComponentUpdate
This commit is contained in:
parent
72c1725f98
commit
1a5bcb4908
@ -161,7 +161,7 @@ module.exports = React.createClass({
|
|||||||
calculateUrlPreview: function() {
|
calculateUrlPreview: function() {
|
||||||
//console.log("calculateUrlPreview: ShowUrlPreview for %s is %s", this.props.mxEvent.getId(), this.props.showUrlPreview);
|
//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);
|
let links = this.findLinks(this.refs.content.children);
|
||||||
if (links.length) {
|
if (links.length) {
|
||||||
// de-dup the links (but preserve ordering)
|
// de-dup the links (but preserve ordering)
|
||||||
|
Loading…
Reference in New Issue
Block a user