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:
parent
bb16357636
commit
34719b9a2e
1 changed files with 5 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue