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

Conversation

@lukebarnard1
Copy link
Contributor

@lukebarnard1 lukebarnard1 commented Feb 2, 2017

Takes what @ara4n started and makes it use a mx_team_token in localStorage instead of config.json.

Goes with element-hq/element-web#3103

@lukebarnard1 lukebarnard1 requested review from dbkr and removed request for dbkr February 2, 2017 14:16
@lukebarnard1
Copy link
Contributor Author

FTR @dbkr I'd like to change this from using local storage as we suggested, to using local storage with a fall-back of query parameter. Local storage will only be set on registration or (in a PR coming soon) logging in.

@lukebarnard1 lukebarnard1 requested a review from dbkr February 7, 2017 11:42
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.

Tests are broken as I think you're missing a this.props

self.notifyNewScreen('directory');
if (self.props.config.home_page) {
self.notifyNewScreen('home');
}
Copy link
Member

Choose a reason for hiding this comment

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

Brace style

self.setState({ready: true, page_type: PageTypes.RoomDirectory});
if (this._teamToken) {
self.setState({ready: true, page_type: PageTypes.HomePage});
}
Copy link
Member

Choose a reason for hiding this comment

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

Brace style

@dbkr dbkr merged commit 96539a4 into develop Feb 7, 2017
@lukebarnard1 lukebarnard1 deleted the luke/rts-welcome-pages branch February 7, 2017 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants