1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-06-26 04:01:04 +03:00

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
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(() => {