From 7fc8509f045e73901dff1079ae1d2169ea812d91 Mon Sep 17 00:00:00 2001 From: Aine Date: Sun, 17 Nov 2024 18:34:22 +0200 Subject: [PATCH] synapse - update retention purge jobs template --- .../custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index 0e7d36b3051..1313dba06a1 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -651,7 +651,7 @@ retention: # room's policy to these values is done after the policies are retrieved from # Synapse's database (which is done using the range specified in a purge job's # configuration). - {% if matrix_synapse_retention_purge_jobs is not none %} + {% if matrix_synapse_retention_purge_jobs | length > 0 %} purge_jobs: {% for job in matrix_synapse_retention_purge_jobs %} - {% if job.longest_max_lifetime is defined %}longest_max_lifetime: {{ job.longest_max_lifetime|to_json }}{% endif %}