소스 검색

Merge pull request #1938 from etkecc/master

fix mautrix-whatsapp config
pull/1940/head
Slavi Pantaleev 3 년 전
committed by GitHub
부모
커밋
140cdf0bc4
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. +7
    -7
      roles/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2

+ 7
- 7
roles/matrix-bridge-mautrix-whatsapp/templates/config.yaml.j2 파일 보기

@@ -80,16 +80,16 @@ whatsapp:
# Bridge config
bridge:
# Localpart template of MXIDs for WhatsApp users.
# {% raw %}{{.}}{% endraw %} is replaced with the phone number of the WhatsApp user.
# {{ '{{.}}' }} is replaced with the phone number of the WhatsApp user.
username_template: "{{ 'whatsapp_{{.}}' }}"
# 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:
# {{.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)"
# {{ '{{.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)' }}"
# 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


불러오는 중...
취소
저장