shorten url by default

This commit is contained in:
David Baker 2019-08-12 13:11:05 +01:00
parent 06905bc5bb
commit bc66545fd0

View File

@ -88,9 +88,9 @@ export default class SetIdServer extends React.Component {
constructor() { constructor() {
super(); super();
let defaultIdServer = MatrixClientPeg.get().getIdentityServerUrl(); let defaultIdServer = abbreviateUrl(MatrixClientPeg.get().getIdentityServerUrl());
if (!defaultIdServer) { if (!defaultIdServer) {
defaultIdServer = SdkConfig.get()['validated_server_config']['idServer'] || ''; defaultIdServer = abbreviateUrl(SdkConfig.get()['validated_server_config']['idServer']) || '';
} }
this.state = { this.state = {