1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

Unbreak auto joining

This commit is contained in:
Luke Barnard
2017-06-15 13:35:19 +01:00
parent fc7da536d6
commit 5c37d591b0

View File

@ -231,10 +231,10 @@ module.exports = React.createClass({
this._updateAutoComplete(room);
this.tabComplete.loadEntries(room);
}
if (!room && !this.state.joining && this.state.roomId) {
if (!this.state.joining && this.state.roomId) {
if (this.props.autoJoin) {
this.onJoinButtonClicked();
} else {
} else if (!room) {
console.log("Attempting to peek into room %s", this.state.roomId);
this.setState({
peekLoading: true,