Merge pull request #983 from matrix-org/rav/clear_storage_on_logout

Call MatrixClient.clearStores on logout
This commit is contained in:
Richard van der Hoff 2017-06-01 17:34:21 +01:00 committed by GitHub
commit 53ebc8d7bd
2 changed files with 31 additions and 11 deletions

View file

@ -292,7 +292,7 @@ module.exports = React.createClass({
},
componentWillUnmount: function() {
Lifecycle.stopMatrixClient();
Lifecycle.stopMatrixClient(false);
dis.unregister(this.dispatcherRef);
UDEHandler.stopListening();
window.removeEventListener("focus", this.onFocus);
@ -364,7 +364,7 @@ module.exports = React.createClass({
// is completed in another browser, we'll be 401ed for using
// a guest access token for a non-guest account.
// It will be restarted in onReturnToGuestClick
Lifecycle.stopMatrixClient();
Lifecycle.stopMatrixClient(false);
this.notifyNewScreen('register');
break;