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

Commit 5c37d59

Browse files
author
Luke Barnard
committed
Unbreak auto joining
1 parent fc7da53 commit 5c37d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/RoomView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ module.exports = React.createClass({
231231
this._updateAutoComplete(room);
232232
this.tabComplete.loadEntries(room);
233233
}
234-
if (!room && !this.state.joining && this.state.roomId) {
234+
if (!this.state.joining && this.state.roomId) {
235235
if (this.props.autoJoin) {
236236
this.onJoinButtonClicked();
237-
} else {
237+
} else if (!room) {
238238
console.log("Attempting to peek into room %s", this.state.roomId);
239239
this.setState({
240240
peekLoading: true,

0 commit comments

Comments
 (0)