1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Handle manual hs urls better

This commit is contained in:
Michael Telatynski
2020-12-08 10:58:16 +00:00
parent 603a1c8ffb
commit e896b009f1
3 changed files with 10 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ export default class ServerPickerDialog extends React.PureComponent<IProps, ISta
const { serverConfig } = this.props;
this.state = {
defaultChosen: serverConfig.isDefault,
otherHomeserver: serverConfig.isDefault ? "" : (serverConfig.hsName || serverConfig.hsUrl),
otherHomeserver: serverConfig.isDefault ? ""
: (serverConfig.static ? serverConfig.hsUrl : serverConfig.hsName || serverConfig.hsUrl),
};
}