From 3c5f7bfe54cf014f5833f72e6b3822ebc5f1bb95 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 14 Jan 2022 12:51:07 +0100 Subject: [PATCH] Fix --- check_process | 2 +- conf/config.json | 2 +- config_panel.toml | 4 +++- manifest.json | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/check_process b/check_process index fd611b1..f32b9bf 100644 --- a/check_process +++ b/check_process @@ -2,7 +2,7 @@ ; Manifest domain="domain.tld" path="/path" - default_home_server="matrix-client.matrix.org" + default_home_server="https://matrix-client.matrix.org" is_public=1 ; Checks pkg_linter=1 diff --git a/conf/config.json b/conf/config.json index 500cc1b..b196d88 100644 --- a/conf/config.json +++ b/conf/config.json @@ -1,7 +1,7 @@ { "default_server_config": { "m.homeserver": { - "base_url": "https://__DEFAULT_HOME_SERVER__", + "base_url": "__DEFAULT_HOME_SERVER__", "server_name": "matrix.org" }, "m.identity_server": { diff --git a/config_panel.toml b/config_panel.toml index 31b857b..386cd6f 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -8,4 +8,6 @@ name = "Element configuration" [main.config.default_home_server] ask = "Choose a home server" - type = "string" \ No newline at end of file + type = "url" + default = "https://matrix-client.matrix.org" + bind = "base_url:__FINALPATH__/config.json" diff --git a/manifest.json b/manifest.json index 7c871e4..5c437cd 100644 --- a/manifest.json +++ b/manifest.json @@ -41,13 +41,13 @@ }, { "name": "default_home_server", - "type": "string", + "type": "url", "ask": { "en": "Choose a default home server", "fr": "Choisissez un serveur par défault" }, - "example": "my-own-homeserver.tld", - "default": "matrix-client.matrix.org" + "example": "https://my-own-homeserver.tld", + "default": "https://matrix-client.matrix.org" }, { "name": "is_public",