This commit is contained in:
Matthew Hodgson 2016-07-18 10:47:03 +01:00
parent e92024f7a9
commit 6bf5499289

View File

@ -240,7 +240,7 @@ module.exports = React.createClass({
this._onRoomLoaded(this.state.room); this._onRoomLoaded(this.state.room);
} }
_updatePreviewUrlVisibility(this.state.room); this._updatePreviewUrlVisibility(this.state.room);
}, },
shouldComponentUpdate: function(nextProps, nextState) { shouldComponentUpdate: function(nextProps, nextState) {
@ -343,8 +343,8 @@ module.exports = React.createClass({
// ignore events for other rooms // ignore events for other rooms
if (!this.state.room || room.roomId != this.state.room.roomId) return; if (!this.state.room || room.roomId != this.state.room.roomId) return;
if (event.getType() === "org.matrix.room.preview_urls") { if (ev.getType() === "org.matrix.room.preview_urls") {
_updatePreviewUrlVisibility(room); this._updatePreviewUrlVisibility(room);
} }
// ignore anything but real-time updates at the end of the room: // ignore anything but real-time updates at the end of the room: