Skip to content

Commit 63f81bf

Browse files
committed
Add support for configuring Synapse's MSC4222 (adding state_after to sync v2) experimental feature
This is required by Element Call. Ref: - https://github.com/element-hq/element-call/blob/93ae2aed9841e0b066d515c56bd4c122d2b591b2/docs/self-hosting.md#a-matrix-homeserver - #3562
1 parent f5a0be0 commit 63f81bf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

roles/custom/matrix-synapse/defaults/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,14 @@ matrix_synapse_experimental_features_msc4140_enabled: false
12751275
# See `matrix_synapse_experimental_features_msc4140_enabled`.
12761276
matrix_synapse_max_event_delay_duration: 24h
12771277

1278+
# Controls whether to enable the MSC4222 experimental feature (adding `state_after` to sync v2).
1279+
#
1280+
# Allow clients to opt-in to a change of the sync v2 API that allows them to correctly track the state of the room.
1281+
# This is required by Element Call to track room state reliably.
1282+
#
1283+
# See https://github.com/matrix-org/matrix-spec-proposals/pull/4222
1284+
matrix_synapse_experimental_features_msc4222_enabled: false
1285+
12781286
# Enable this to activate the REST auth password provider module.
12791287
# See: https://github.com/ma1uta/matrix-synapse-rest-password-provider
12801288
matrix_synapse_ext_password_provider_rest_auth_enabled: false

roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2990,6 +2990,9 @@ experimental_features:
29902990
{% if matrix_synapse_experimental_features_msc4140_enabled %}
29912991
msc4140_enabled: true
29922992
{% endif %}
2993+
{% if matrix_synapse_experimental_features_msc4222_enabled %}
2994+
msc4222_enabled: true
2995+
{% endif %}
29932996

29942997
{% if matrix_synapse_experimental_features_msc4140_enabled %}
29952998
max_event_delay_duration: {{ matrix_synapse_max_event_delay_duration | to_json }}

0 commit comments

Comments
 (0)