Merge pull request #1085 from matrix-org/rav/clear_storage_on_login

Clear persistent storage on login and logout
This commit is contained in:
Richard van der Hoff 2017-06-14 10:34:26 +01:00 committed by GitHub
commit 9e70884415
4 changed files with 128 additions and 57 deletions

View file

@ -1229,6 +1229,8 @@ module.exports = React.createClass({
onReturnToGuestClick: function() {
// reanimate our guest login
if (this.state.guestCreds) {
// TODO: this is probably a bit broken - we don't want to be
// clearing storage when we reanimate the guest creds.
Lifecycle.setLoggedIn(this.state.guestCreds);
this.setState({guestCreds: null});
}