Don't forget to show the homepage if no welcome user

pull/21833/head
David Baker 2019-06-14 16:04:09 +01:00
parent 8fa50b26a6
commit 929e9dc653
1 changed files with 6 additions and 1 deletions

View File

@ -1191,9 +1191,14 @@ export default React.createClass({
return; return;
} }
} }
// The user has just logged in after registering // We didn't rediret to the welcome user room, so show
// the homepage.
dis.dispatch({action: 'view_home_page'}); dis.dispatch({action: 'view_home_page'});
}); });
} else {
// The user has just logged in after registering,
// so show the homepage.
dis.dispatch({action: 'view_home_page'});
} }
} else { } else {
this._showScreenAfterLogin(); this._showScreenAfterLogin();