From 6bf54992895a0e768e4a453a25b5d5438e9d3317 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 18 Jul 2016 10:47:03 +0100 Subject: [PATCH] typos --- src/components/structures/RoomView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 35217ab2f4..ea73193b03 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -240,7 +240,7 @@ module.exports = React.createClass({ this._onRoomLoaded(this.state.room); } - _updatePreviewUrlVisibility(this.state.room); + this._updatePreviewUrlVisibility(this.state.room); }, shouldComponentUpdate: function(nextProps, nextState) { @@ -343,8 +343,8 @@ module.exports = React.createClass({ // ignore events for other rooms if (!this.state.room || room.roomId != this.state.room.roomId) return; - if (event.getType() === "org.matrix.room.preview_urls") { - _updatePreviewUrlVisibility(room); + if (ev.getType() === "org.matrix.room.preview_urls") { + this._updatePreviewUrlVisibility(room); } // ignore anything but real-time updates at the end of the room: