From 4aa3345db0c6a1a13384e29f773787941f1412f5 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Thu, 27 Jun 2024 21:35:56 +0300 Subject: [PATCH] Simplify auto_join_mxid_localpart population --- .../matrix-synapse/templates/synapse/homeserver.yaml.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index f8e77930d..48bacc4f6 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -1541,9 +1541,7 @@ autocreate_auto_join_rooms: {{ matrix_synapse_autocreate_auto_join_rooms|to_json # Note that, if the room already exists, this user must be joined and # have the appropriate permissions to invite new members. # -{% if matrix_synapse_auto_join_mxid_localpart %} -auto_join_mxid_localpart: {{ matrix_synapse_auto_join_mxid_localpart }} -{% endif %} +auto_join_mxid_localpart: {{ matrix_synapse_auto_join_mxid_localpart | to_json }} # When auto_join_rooms is specified, setting this flag to false prevents # guest accounts from being automatically joined to the rooms.