diff --git a/ansible/plays/services/matrix/mautrix-slack/config.yaml b/ansible/plays/services/matrix/mautrix-slack/config.yaml index d9841d5..10c508b 100644 --- a/ansible/plays/services/matrix/mautrix-slack/config.yaml +++ b/ansible/plays/services/matrix/mautrix-slack/config.yaml @@ -69,7 +69,7 @@ bridge: username_template: slack_{{.}} # Displayname template for Slack users. # TODO: document variables - displayname_template: '{{if eq (trim .DisplayName " ") ""}}{{.RealName}}{{else}}{{.DisplayName}}{{end}} (Slack)' + displayname_template: '{{if not .DisplayName}}{{.RealName}}{{else}}{{.DisplayName}}{{end}} (Slack)' bot_displayname_template: '{{.Name}} (bot)' channel_name_template: '#{{.Name}}' {% endraw %}