mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Use the safer way to set the logged in view state
This commit is contained in:
parent
35c9dce241
commit
7904b91b58
1 changed files with 1 additions and 4 deletions
|
@ -1186,10 +1186,7 @@ export default React.createClass({
|
|||
* @param {string} teamToken
|
||||
*/
|
||||
_onLoggedIn: async function(teamToken) {
|
||||
this.setState({
|
||||
view: VIEWS.LOGGED_IN,
|
||||
});
|
||||
|
||||
this.setStateForNewView({view: VIEWS.LOGGED_IN});
|
||||
if (teamToken) {
|
||||
// A team member has logged in, not a guest
|
||||
this._teamToken = teamToken;
|
||||
|
|
Loading…
Reference in a new issue