Merge pull request #689 from matrix-org/luke/rts-set-team-token-view-home

View /home on registered /w team
This commit is contained in:
David Baker 2017-02-14 10:21:23 +00:00 committed by GitHub
commit 18cba1fe45
2 changed files with 8 additions and 0 deletions

View file

@ -991,6 +991,11 @@ module.exports = React.createClass({
this._setPage(PageTypes.UserSettings);
},
onTeamMemberRegistered: function(teamToken) {
this._teamToken = teamToken;
this._setPage(PageTypes.HomePage);
},
onFinishPostRegistration: function() {
// Don't confuse this with "PageType" which is the middle window to show
this.setState({
@ -1119,6 +1124,7 @@ module.exports = React.createClass({
customIsUrl={this.getCurrentIsUrl()}
registrationUrl={this.props.registrationUrl}
defaultDeviceDisplayName={this.props.defaultDeviceDisplayName}
onTeamMemberRegistered={this.onTeamMemberRegistered}
onLoggedIn={this.onRegistered}
onLoginClick={this.onLoginClick}
onRegisterClick={this.onRegisterClick}