From 2e5b3ec0f1bc55b36379c9416fe3c04cffb17425 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 2 Jan 2019 13:07:10 -0700 Subject: [PATCH] Use the safer way to set the logged in view state --- src/components/structures/MatrixChat.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 44689a4d30..38f0243444 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -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;