From bf1efda094978b9368ac8b07dc26e8ab62614e96 Mon Sep 17 00:00:00 2001 From: Benjamin Blacher Date: Thu, 13 Mar 2025 20:28:23 +0100 Subject: [PATCH] Add support for configuring Synapse's MSC4133 (Custom Profile Fields) (#4171) * Add support for configuring Synapse's MSC4133 (Custom Profile Fields) experimental feature * Reorder experimental_features in homeserver.yaml.j2 alphabetically --------- Co-authored-by: Slavi Pantaleev --- roles/custom/matrix-synapse/defaults/main.yml | 7 +++++++ .../matrix-synapse/templates/synapse/homeserver.yaml.j2 | 3 +++ 2 files changed, 10 insertions(+) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 9147e127d..0aa9d5f4b 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -1275,6 +1275,13 @@ matrix_synapse_experimental_features_msc4140_enabled: false # See `matrix_synapse_experimental_features_msc4140_enabled`. matrix_synapse_max_event_delay_duration: 24h +# Controls whether to enable the MSC4133 experimental feature (Custom profile fields). +# +# This allows clients to set custom profile fields (e.g. User Time Zone in Element Web) +# +# See https://github.com/matrix-org/matrix-spec-proposals/pull/4133 +matrix_synapse_experimental_features_msc4133_enabled: false + # Controls whether to enable the MSC4222 experimental feature (adding `state_after` to sync v2). # # Allow clients to opt-in to a change of the sync v2 API that allows them to correctly track the state of the room. diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index 9675bb245..218be3b03 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -2987,6 +2987,9 @@ experimental_features: {% if matrix_synapse_experimental_features_msc4108_enabled %} msc4108_enabled: true {% endif %} + {% if matrix_synapse_experimental_features_msc4133_enabled %} + msc4133_enabled: true + {% endif %} {% if matrix_synapse_experimental_features_msc4140_enabled %} msc4140_enabled: true {% endif %}