You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Only init RTS if configured correctly
This commit is contained in:
@ -210,7 +210,11 @@ module.exports = React.createClass({
|
|||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
this.handleResize();
|
this.handleResize();
|
||||||
|
|
||||||
Lifecycle.initRtsClient(this.props.config.teamServerConfig.teamServerURL);
|
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
|
// the extra q() ensures that synchronous exceptions hit the same codepath as
|
||||||
// asynchronous ones.
|
// asynchronous ones.
|
||||||
|
Reference in New Issue
Block a user