1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-29 21:23:11 +03:00

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
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});
}