From b0da54533d040eeef3366854d8815a9d63067b24 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 4 Feb 2016 13:25:45 +0000 Subject: [PATCH] Don't do this check - it's not valid since we set the room in onRoomName --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 4553e9053e..ca564d3e11 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -426,7 +426,7 @@ module.exports = React.createClass({ // set it in our state and start using it (ie. init the timeline) // This will happen if we start off viewing a room we're not joined, // then join it whilst RoomView is looking at that room. - if (room.roomId == this.props.roomId && !this.state.room) { + if (room.roomId == this.props.roomId) { this.setState({ room: room });