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:
parent
4bc252a16b
commit
c3d37c1ff9
2 changed files with 31 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue