mirror of https://github.com/vector-im/riot-web
Only expose the fallback_hs_url if the homeserver is the default HS
See https://github.com/vector-im/riot-web/issues/9290pull/21833/head
parent
bb16357636
commit
34719b9a2e
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue