From f38b4b096b4baba80ad3c7759d08f51496081e2a Mon Sep 17 00:00:00 2001 From: Grace Dinh <34658064+gdinh@users.noreply.github.com> Date: Thu, 19 Jun 2025 17:25:02 -0400 Subject: [PATCH] Update slack.tpl.yaml Bring displayname_template up to date with https://github.com/mautrix/slack/commit/ab940570f74b259f995d94a6acabfdc705416d51. Fixes bug that renders the usernames of people without display names set as UIDs (instead of falling back to real names). --- bridgeconfig/slack.tpl.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridgeconfig/slack.tpl.yaml b/bridgeconfig/slack.tpl.yaml index 484f4d5..dc30f1d 100644 --- a/bridgeconfig/slack.tpl.yaml +++ b/bridgeconfig/slack.tpl.yaml @@ -16,7 +16,7 @@ network: # .Profile.Pronouns - The pronouns of the user # .Profile.Email - The email address of the user # .Profile.Phone - The formatted phone number of the user - displayname_template: '{{ `{{.Profile.DisplayName}}{{if .IsBot}} (bot){{end}}` }}' + displayname_template: '{{ `{{or .Profile.DisplayName .Profile.RealName .Name}}{{if .IsBot}} (bot){{end}}` }}' # Channel name template for Slack channels (all types). Available variables: # .Name - The name of the channel # .TeamName - The name of the team the channel is in