Merge pull request #2971 from matrix-org/travis/wk/fallback_hs
Only expose the fallback_hs_url if the homeserver is the default homeserver
This commit is contained in:
commit
f75dc9c804
2 changed files with 8 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue