From 5976684a9ac7b0144e55f48ebd01845c3057d544 Mon Sep 17 00:00:00 2001 From: Sven Andersen Date: Tue, 30 Jul 2024 12:20:57 +0200 Subject: [PATCH] feat(element): Implement toggle for userpresence within element-synapse and removed it from client --- helmfile/apps/element/values-element.yaml.gotmpl | 4 ---- helmfile/apps/element/values-synapse.yaml.gotmpl | 6 ++++-- helmfile/environments/default/functional.yaml | 9 +++++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/helmfile/apps/element/values-element.yaml.gotmpl b/helmfile/apps/element/values-element.yaml.gotmpl index 65731dc8..6cb19596 100644 --- a/helmfile/apps/element/values-element.yaml.gotmpl +++ b/helmfile/apps/element/values-element.yaml.gotmpl @@ -145,8 +145,4 @@ resources: theme: {{ .Values.theme | toYaml | nindent 2 }} -presence: - enabled: {{ .Values.functional.dataProtection.matrixPresence.enabled }} -use_presence: - enabled: {{ .Values.functional.dataProtection.usePresence.enabled }} ... diff --git a/helmfile/apps/element/values-synapse.yaml.gotmpl b/helmfile/apps/element/values-synapse.yaml.gotmpl index afc48d31..f7c991d8 100644 --- a/helmfile/apps/element/values-synapse.yaml.gotmpl +++ b/helmfile/apps/element/values-synapse.yaml.gotmpl @@ -40,8 +40,10 @@ configuration: regex: "@.*" url: null sender_localpart: intercom-service - presence: {{ .Values.functional.dataProtection.matrixPresence.enabled }} - use_presence: {{ .Values.functional.dataProtection.usePresence.enabled }} + use_presence: {{ .Values.functional.dataProtection.usePresence }} + presence: + enabled: {{ .Values.functional.dataProtection.matrixPresence.enabled }} + smtp: diff --git a/helmfile/environments/default/functional.yaml b/helmfile/environments/default/functional.yaml index d2dd28f2..891d0256 100644 --- a/helmfile/environments/default/functional.yaml +++ b/helmfile/environments/default/functional.yaml @@ -47,12 +47,13 @@ functional: # yamllint enable rule:line-length dataProtection: + # Enable to allow information about the user presence status to be shared. + # Using this for older Element versions. Deprecated and should be removed, when updating Element. + usePresence: false + matrixPresence: # Enable to allow information about the user presence status to be shared. # Ref.: https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#presence enabled: false - usePresence: - # Enable to allow information about the user presence status to be shared. - # Use this for older Element-Versions - enabled: false + ...