You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-26 04:01:04 +03:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user