message: Disable Scalar Integrations if urls passed to it are falsey
diff: @@ -129,6 +129,8 @@ module.exports = React.createClass({
  console.error("Failed to get room visibility: " + err);
  });
  + this.scalarClient = null;
  + if (SdkConfig.get().integrations_ui_url && SdkConfig.get().integrations_rest_url) {
  this.scalarClient = new ScalarAuthClient();
  this.scalarClient.connect().done(() => {
  this.forceUpdate();
  @@ -137,6 +139,7 @@ module.exports = React.createClass({
  scalar_error: err
  });
  });
  + }
  dis.dispatch({
  action: 'ui_opacity',
  @@ -490,7 +493,7 @@ module.exports = React.createClass({
  ev.preventDefault();
  var IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
  Modal.createDialog(IntegrationsManager, {
  - src: this.scalarClient.hasCredentials() ?
  + src: (this.scalarClient !== null && this.scalarClient.hasCredentials()) ?
  this.scalarClient.getScalarInterfaceUrlForRoom(this.props.room.roomId) :
  null,
  onFinished: ()=>{
  @@ -765,8 +768,10 @@ module.exports = React.createClass({
  </div>;
  }
  - var integrationsButton;
  - var integrationsError;
  + let integrationsButton;
  + let integrationsError;
  +
  + if (this.scalarClient !== null) {
  if (this.state.showIntegrationsError && this.state.scalar_error) {
  console.error(this.state.scalar_error);
  integrationsError = (
  @@ -796,6 +801,7 @@ module.exports = React.createClass({
  </div>
  );
  }
  + }
  return (
  <div className="mx_RoomSettings">
  