Merge pull request #676 from matrix-org/luke/rts-team-token-login

Get team_token from the RTS on login
This commit is contained in:
David Baker 2017-02-08 10:54:24 +00:00 committed by GitHub
commit fe17e2452b
3 changed files with 40 additions and 0 deletions

View file

@ -215,6 +215,12 @@ module.exports = React.createClass({
window.addEventListener('resize', this.handleResize);
this.handleResize();
if (this.props.config.teamServerConfig &&
this.props.config.teamServerConfig.teamServerURL
) {
Lifecycle.initRtsClient(this.props.config.teamServerConfig.teamServerURL);
}
// the extra q() ensures that synchronous exceptions hit the same codepath as
// asynchronous ones.
q().then(() => {