Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Persist query parameter team token across refreshes #685

Merged
merged 2 commits into from
Feb 10, 2017

Conversation

lukebarnard1
Copy link
Contributor

No description provided.

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than that, lgtm

@@ -191,10 +191,18 @@ module.exports = React.createClass({
MatrixClientPeg.opts.initialSyncLimit = this.props.config.sync_timeline_limit;
}

// Persist the team token across refreshes
if (this.props.startingFragmentQueryParams.team_token) {
window.sessionStorage.setItem(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to comment that yes, we do mean session storage here, for when I completely forget the conversation we had :p

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea :)

@lukebarnard1 lukebarnard1 merged commit a5a43bc into develop Feb 10, 2017
@lukebarnard1 lukebarnard1 deleted the luke/rts-session-team-token branch February 10, 2017 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants