From 30566beb43845a4cc9ff68aa76f20ff495140c8f Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 15 Jun 2017 13:28:52 +0100 Subject: [PATCH] Fix if-statement thinko --- src/components/structures/RoomView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 4ee502dd5f..4bf6fc5070 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -230,7 +230,8 @@ module.exports = React.createClass({ if (room) { this._updateAutoComplete(room); this.tabComplete.loadEntries(room); - } else if (!this.state.joining && this.state.roomId) { + } + if (!room && !this.state.joining && this.state.roomId) { if (this.props.autoJoin) { this.onJoinButtonClicked(); } else {