Flag all generated configs as non-default by default

The app is expected to flag a particular config themselves as default. This is primarily intended so that other parts of the app can determine what to do based on whether or not the config is a default config.

See https://github.com/vector-im/riot-web/issues/9290
pull/21833/head
Travis Ralston 2019-05-14 13:06:56 -06:00
parent 4c1ac38dd4
commit bb16357636
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,8 @@ export class ValidatedServerConfig {
isUrl: string; isUrl: string;
identityEnabled: boolean; identityEnabled: boolean;
isDefault: boolean;
} }
export default class AutoDiscoveryUtils { export default class AutoDiscoveryUtils {
@ -99,6 +101,7 @@ export default class AutoDiscoveryUtils {
hsNameIsDifferent: url.hostname !== preferredHomeserverName, hsNameIsDifferent: url.hostname !== preferredHomeserverName,
isUrl: preferredIdentityUrl, isUrl: preferredIdentityUrl,
identityEnabled: !SdkConfig.get()['disable_identity_server'], identityEnabled: !SdkConfig.get()['disable_identity_server'],
isDefault: false,
}); });
} }
} }