mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Resolve correct screen not being shown after new registration
This commit is contained in:
parent
e454d84e9d
commit
5edb0ec912
1 changed files with 9 additions and 1 deletions
|
@ -1182,7 +1182,15 @@ export default createReactClass({
|
||||||
_onLoggedIn: async function() {
|
_onLoggedIn: async function() {
|
||||||
ThemeController.isLogin = false;
|
ThemeController.isLogin = false;
|
||||||
this.setStateForNewView({ view: VIEWS.LOGGED_IN });
|
this.setStateForNewView({ view: VIEWS.LOGGED_IN });
|
||||||
if (MatrixClientPeg.currentUserIsJustRegistered()) {
|
// If a specific screen is set to be shown after login, show that above
|
||||||
|
// all else, as it probably means the user clicked on something already.
|
||||||
|
if (this._screenAfterLogin && this._screenAfterLogin.screen) {
|
||||||
|
this.showScreen(
|
||||||
|
this._screenAfterLogin.screen,
|
||||||
|
this._screenAfterLogin.params,
|
||||||
|
);
|
||||||
|
this._screenAfterLogin = null;
|
||||||
|
} else if (MatrixClientPeg.currentUserIsJustRegistered()) {
|
||||||
MatrixClientPeg.setJustRegisteredUserId(null);
|
MatrixClientPeg.setJustRegisteredUserId(null);
|
||||||
|
|
||||||
if (this.props.config.welcomeUserId && getCurrentLanguage().startsWith("en")) {
|
if (this.props.config.welcomeUserId && getCurrentLanguage().startsWith("en")) {
|
||||||
|
|
Loading…
Reference in a new issue