Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 30566be

Browse files
author
Luke Barnard
committed
Fix if-statement thinko
1 parent d55d61e commit 30566be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/structures/RoomView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ module.exports = React.createClass({
230230
if (room) {
231231
this._updateAutoComplete(room);
232232
this.tabComplete.loadEntries(room);
233-
} else if (!this.state.joining && this.state.roomId) {
233+
}
234+
if (!room && !this.state.joining && this.state.roomId) {
234235
if (this.props.autoJoin) {
235236
this.onJoinButtonClicked();
236237
} else {

0 commit comments

Comments
 (0)