Fix if-statement thinko

pull/21833/head
Luke Barnard 2017-06-15 13:28:52 +01:00
parent d55d61e456
commit 30566beb43
1 changed files with 2 additions and 1 deletions

View File

@ -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 {