ソースを参照

Extract mautrix-whatsapp's `network.displayname_template` configuration into a variable (`matrix_mautrix_whatsapp_network_displayname_template`)

pull/4403/head
Slavi Pantaleev 7ヶ月前
コミット
f4306be183
2個のファイルの変更8行の追加1行の削除
  1. +7
    -0
      roles/custom/matrix-bridge-mautrix-whatsapp/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2

+ 7
- 0
roles/custom/matrix-bridge-mautrix-whatsapp/defaults/main.yml ファイルの表示

@@ -161,6 +161,13 @@ matrix_mautrix_whatsapp_double_puppet_secrets: "{{ matrix_mautrix_whatsapp_doubl
matrix_mautrix_whatsapp_double_puppet_secrets_auto: {}
matrix_mautrix_whatsapp_double_puppet_secrets_custom: {}

# Displayname template for WhatsApp users.
# {{.PushName}} - nickname set by the WhatsApp user
# {{.BusinessName}} - validated WhatsApp business name
# {{.Phone}} - phone number (international format)
# {{.FullName}} - Name you set in the contacts list
matrix_mautrix_whatsapp_network_displayname_template: '{% raw %}{{or .BusinessName .PushName .Phone}} (WA){% endraw %}'

# Enable End-to-bridge encryption
matrix_mautrix_whatsapp_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}"
matrix_mautrix_whatsapp_bridge_encryption_default: "{{ matrix_bridges_encryption_default }}"


+ 1
- 1
roles/custom/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2 ファイルの表示

@@ -22,7 +22,7 @@ network:
# {{.Phone}} - phone number (international format)
# {{.FullName}} - Name you set in the contacts list
# {% endraw %}
displayname_template: "{% raw %}{{or .BusinessName .PushName .Phone}} (WA){% endraw %}"
displayname_template: {{ matrix_mautrix_whatsapp_network_displayname_template | to_json }}

# Should incoming calls send a message to the Matrix room?
call_start_notices: true


読み込み中…
キャンセル
保存