Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Flag all generated configs as non-default by default
Browse files Browse the repository at this point in the history
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 element-hq/element-web#9290
  • Loading branch information
turt2live committed May 14, 2019
1 parent 4c1ac38 commit bb16357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/AutoDiscoveryUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class ValidatedServerConfig {

isUrl: string;
identityEnabled: boolean;

isDefault: boolean;
}

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

0 comments on commit bb16357

Please sign in to comment.