Only expose the fallback_hs_url if the homeserver is the default HS

See https://github.com/vector-im/riot-web/issues/9290
This commit is contained in:
Travis Ralston 2019-05-14 13:10:02 -06:00
parent bb16357636
commit 34719b9a2e

View file

@ -203,9 +203,12 @@ export default React.createClass({
}; };
}, },
// TODO: TravisR - Remove this or put it somewhere else
getFallbackHsUrl: function() { getFallbackHsUrl: function() {
if (this.props.serverConfig.isDefault) {
return this.props.config.fallback_hs_url; return this.props.config.fallback_hs_url;
} else {
return null;
}
}, },
getServerProperties() { getServerProperties() {