Document how to use multiple if's in displayname_template, Closes #162

This commit is contained in:
davralin 2020-04-06 00:05:39 +02:00 committed by Tulir Asokan
parent 9aee1c83ac
commit 44bb623e7a

View file

@ -60,6 +60,8 @@ bridge:
# The following variables are also available, but will cause problems on multi-user instances:
# {{.Name}} - display name from contact list
# {{.Short}} - short display name from contact list
# To use multiple if's, you need to use: {{else if .Name}}, for example:
# "{{if .Notify}}{{.Notify}}{{else if .Name}}{{.Name}}{{else}}{{.Jid}}{{end}} (WA)"
displayname_template: "{{if .Notify}}{{.Notify}}{{else}}{{.Jid}}{{end}} (WA)"
# Localpart template for per-user room grouping community IDs.
# On startup, the bridge will try to create these communities, add all of the specific user's