Преглед изворни кода

mautrix-whatsapp - fix more vars

pull/1938/head
Aine пре 3 година
родитељ
комит
e3ff6ca01b
No known key found for this signature in database GPG Key ID: 34969C908CCA2804
1 измењених фајлова са 5 додато и 5 уклоњено
  1. +5
    -5
      roles/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2

+ 5
- 5
roles/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2 Прегледај датотеку

@@ -83,12 +83,12 @@ bridge:
# {{ '{{.}}' }} is replaced with the phone number of the WhatsApp user. # {{ '{{.}}' }} is replaced with the phone number of the WhatsApp user.
username_template: "{{ 'whatsapp_{{.}}' }}" username_template: "{{ 'whatsapp_{{.}}' }}"
# Displayname template for WhatsApp users. # Displayname template for WhatsApp users.
# {{.PushName}} - nickname set by the WhatsApp user
# {{.BusinessName}} - validated WhatsApp business name
# {{.Phone}} - phone number (international format)
# {{ '{{.PushName}}' }} - nickname set by the WhatsApp user
# {{ '{{.BusinessName}}' }} - validated WhatsApp business name
# {{ '{{.Phone}}' }} - phone number (international format)
# The following variables are also available, but will cause problems on multi-user instances: # 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
# {{ '{{.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: "{{ '{{if .BusinessName}}{{.BusinessName}}{{else if .PushName}}{{.PushName}}{{else}}{{.JID}}{{end}} (WA)' }}"
# Should the bridge create a space for each logged-in user and add bridged rooms to it? # 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. # Users who logged in before turning this on should run `!wa sync space` to create and fill the space for the first time.


Loading…
Откажи
Сачувај