mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-16 09:51:31 +02:00
move to a more reusable code path
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b77c2df2be
commit
4ed4d91b48
@ -674,7 +674,6 @@ export default createReactClass({
|
||||
this.state.view !== VIEWS.E2E_SETUP
|
||||
) {
|
||||
this._onLoggedIn();
|
||||
ThemeController.isLogin = false;
|
||||
}
|
||||
break;
|
||||
case 'on_client_not_viable':
|
||||
@ -1176,6 +1175,7 @@ export default createReactClass({
|
||||
* Called when a new logged in session has started
|
||||
*/
|
||||
_onLoggedIn: async function() {
|
||||
ThemeController.isLogin = false;
|
||||
this.setStateForNewView({ view: VIEWS.LOGGED_IN });
|
||||
if (MatrixClientPeg.currentUserIsJustRegistered()) {
|
||||
MatrixClientPeg.setJustRegisteredUserId(null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user