1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Use the safer way to set the logged in view state

This commit is contained in:
Travis Ralston
2019-01-02 13:07:10 -07:00
parent 8f5e825cd5
commit 2e5b3ec0f1

View File

@@ -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;