浏览代码

Simplify default displayname template

Tulir Asokan 2 年之前
父节点
当前提交
58aaabeaa3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      example-config.yaml

+ 1 - 1
example-config.yaml

@@ -103,7 +103,7 @@ bridge:
     # The following variables are also available, but will cause problems on multi-user instances:
     # {{.FullName}}  - full name from contact list
     # {{.FirstName}} - first name from contact list
-    displayname_template: "{{if .BusinessName}}{{.BusinessName}}{{else if .PushName}}{{.PushName}}{{else}}{{.JID}}{{end}} (WA)"
+    displayname_template: "{{or .BusinessName .PushName .JID}} (WA)"
     # Should the bridge create a space for each logged-in user and add bridged rooms to it?
     # Users who logged in before turning this on should run `!wa sync space` to create and fill the space for the first time.
     personal_filtering_spaces: false