Call MatrixClient.clearStores on logout

... to make sure that we don't have any sensitive data sitting around in the
stores.
This commit is contained in:
Richard van der Hoff 2017-05-31 17:28:46 +01:00
parent 4bc252a16b
commit c3d37c1ff9
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;