Actually remove the bit that's no longer neccessary

This commit is contained in:
David Baker 2022-12-21 15:17:34 +00:00
parent c879090a34
commit 29f48f25f4

View File

@ -41,21 +41,11 @@ export class Config {
// Convenience accessors
public static defaultHomeserverUrl(): string | undefined {
const defaultServerConfig = Config.get().default_server_config;
if (!defaultServerConfig) {
return undefined;
}
return defaultServerConfig["m.homeserver"].base_url;
return Config.get().default_server_config["m.homeserver"].base_url;
}
public static defaultServerName(): string | undefined {
const defaultServerConfig = Config.get().default_server_config;
if (!defaultServerConfig) {
return undefined;
}
return defaultServerConfig["m.homeserver"].server_name;
return Config.get().default_server_config["m.homeserver"].server_name;
}
public config?: ConfigOptions;