Переглянути джерело

Fix signal displayname config

pull/4646/head
Benjamin Blacher 4 місяці тому
committed by Slavi Pantaleev
джерело
коміт
489bf39322
2 змінених файлів з 1 додано та 8 видалено
  1. +1
    -1
      roles/custom/matrix-bridge-mautrix-signal/defaults/main.yml
  2. +0
    -7
      roles/custom/matrix-bridge-mautrix-signal/templates/config.yaml.j2

+ 1
- 1
roles/custom/matrix-bridge-mautrix-signal/defaults/main.yml Переглянути файл

@@ -57,7 +57,7 @@ matrix_mautrix_signal_command_prefix: "!signal"
# {{.PhoneNumber}} - The phone number of the user. # {{.PhoneNumber}} - The phone number of the user.
# {{.UUID}} - The UUID of the Signal user. # {{.UUID}} - The UUID of the Signal user.
# {{.AboutEmoji}} - The emoji set by the user in their profile. # {{.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_network_displayname_template: '{% raw %}{{or .ProfileName .PhoneNumber "Unknown user"}} (Signal){% endraw %}'


matrix_mautrix_signal_bridge_permissions: | matrix_mautrix_signal_bridge_permissions: |
{{ {{


+ 0
- 7
roles/custom/matrix-bridge-mautrix-signal/templates/config.yaml.j2 Переглянути файл

@@ -2,13 +2,6 @@
# Network-specific config options # Network-specific config options
network: network:
# Displayname template for Signal users. # Displayname template for Signal users.
# {% raw %}
# {{.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.
# {% endraw %}
displayname_template: {{ matrix_mautrix_signal_network_displayname_template | to_json }} 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. # Should avatars from the user's contact list be used? This is not safe on multi-user instances.
use_contact_avatars: false use_contact_avatars: false


Завантаження…
Відмінити
Зберегти