Only expose the fallback_hs_url if the homeserver is the default HS

See https://github.com/vector-im/riot-web/issues/9290
pull/21833/head
Travis Ralston 2019-05-14 13:10:02 -06:00
parent bb16357636
commit 34719b9a2e
1 changed files with 5 additions and 2 deletions

View File

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