From 620247673e9fec7d3ebb99af4f2665e6cbbf72ab Mon Sep 17 00:00:00 2001 From: Igor Goldenberg Date: Wed, 22 Feb 2023 18:04:13 +0500 Subject: [PATCH] Allow configure default country code in element welcome page. --- roles/custom/matrix-client-element/defaults/main.yml | 3 +++ roles/custom/matrix-client-element/templates/config.json.j2 | 1 + 2 files changed, 4 insertions(+) diff --git a/roles/custom/matrix-client-element/defaults/main.yml b/roles/custom/matrix-client-element/defaults/main.yml index c9540ae0..60b52d60 100644 --- a/roles/custom/matrix-client-element/defaults/main.yml +++ b/roles/custom/matrix-client-element/defaults/main.yml @@ -191,6 +191,9 @@ matrix_client_element_self_check_validate_certificates: true # don't show the registration button on welcome page matrix_client_element_registration_enabled: false +# Default country code on welcome page when login by phone number +matrix_client_element_default_country_code: "GB" + # Controls whether presence will be enabled matrix_client_element_enable_presence_by_hs_url: ~ diff --git a/roles/custom/matrix-client-element/templates/config.json.j2 b/roles/custom/matrix-client-element/templates/config.json.j2 index 1ae16f41..e0dc993c 100644 --- a/roles/custom/matrix-client-element/templates/config.json.j2 +++ b/roles/custom/matrix-client-element/templates/config.json.j2 @@ -12,6 +12,7 @@ "custom_themes": {{ matrix_client_element_settingDefaults_custom_themes|to_json }} }, "default_theme": {{ matrix_client_element_default_theme | string|to_json }}, + "default_country_code": {{ matrix_client_element_default_country_code | string|to_json }}, "permalinkPrefix": {{ matrix_client_element_permalinkPrefix | string|to_json }}, "disable_custom_urls": {{ matrix_client_element_disable_custom_urls|to_json }}, "disable_guests": {{ matrix_client_element_disable_guests|to_json }},