Просмотр исходного кода

Extract mautrix-signal's `network.displayname_template` configuration into a variable (`matrix_mautrix_signal_network_displayname_template`)

pull/4403/head
Slavi Pantaleev 7 месяцев назад
Родитель
Сommit
1813c856e6
2 измененных файлов: 9 добавлений и 1 удалений
  1. +8
    -0
      roles/custom/matrix-bridge-mautrix-signal/defaults/main.yml
  2. +1
    -1
      roles/custom/matrix-bridge-mautrix-signal/templates/config.yaml.j2

+ 8
- 0
roles/custom/matrix-bridge-mautrix-signal/defaults/main.yml Просмотреть файл

@@ -48,6 +48,14 @@ matrix_mautrix_signal_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"

matrix_mautrix_signal_command_prefix: "!signal"

# Displayname template for Signal users.
# {{.ProfileName}} - The Signal profile name set by the user.
# {{.ContactName}} - The name for the user from your phone's contact list. This is not safe on multi-user instances.
# {{.PhoneNumber}} - The phone number of the user.
# {{.UUID}} - The UUID of the Signal user.
# {{.AboutEmoji}} - The emoji set by the user in their profile.
matrix_mautrix_signal_network_displayname_template: "{% raw %}{{or .ProfileName .PhoneNumber 'Unknown user'}} (Signal){% endraw %}"

matrix_mautrix_signal_bridge_permissions: |
{{
{'*': 'relay', matrix_mautrix_signal_homeserver_domain: 'user'}


+ 1
- 1
roles/custom/matrix-bridge-mautrix-signal/templates/config.yaml.j2 Просмотреть файл

@@ -9,7 +9,7 @@ network:
# {{.UUID}} - The UUID of the Signal user.
# {{.AboutEmoji}} - The emoji set by the user in their profile.
# {% endraw %}
displayname_template: "{% raw %}{{or .ProfileName .PhoneNumber 'Unknown user'}} (Signal){% endraw %}"
displayname_template: {{ matrix_mautrix_signal_network_displayname_template | to_json }}
# Should avatars from the user's contact list be used? This is not safe on multi-user instances.
use_contact_avatars: false
# Should the bridge request the user's contact list from the phone on startup?


Загрузка…
Отмена
Сохранить