fix(mautrix-signal): improve display_name template

This commit is contained in:
WrenIX 2024-08-25 05:50:57 +02:00
parent 4e67ed133e
commit ed89909ed7
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: mautrix-signal
description: A Matrix-Signal puppeting bridge.
type: application
version: 0.0.10
version: 0.0.11
# renovate: image=dock.mau.dev/mautrix/signal
appVersion: "0.7.0"
maintainers:

View file

@ -2,7 +2,7 @@
= mautrix-signal
image::https://img.shields.io/badge/Version-0.0.10-informational?style=flat-square[Version: 0.0.10]
image::https://img.shields.io/badge/Version-0.0.11-informational?style=flat-square[Version: 0.0.11]
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
image::https://img.shields.io/badge/AppVersion-0.7.0-informational?style=flat-square[AppVersion: 0.7.0]
== Maintainers
@ -647,7 +647,7 @@ helm uninstall mautrix-signal-release
| config.signal.displayname_template
| string
| `"{{or .ProfileName .PhoneNumber \"Unknown user\"}}"`
| `"{{ printf \"%s (%s) %s\" (or .ProfileName .ContactName \"Unknown user\") (or .PhoneNumber \"Unknown number\" (or .AboutEmoji \"\")}}"`
| Displayname template for Signal users. This is also used as the room name in DMs if private_chat_portal_meta is enabled. {{.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.
| config.signal.location_format

View file

@ -414,7 +414,7 @@ config:
# {{.PhoneNumber}} - The phone number of the user.
# {{.UUID}} - The UUID of the Signal user.
# {{.AboutEmoji}} - The emoji set by the user in their profile.
displayname_template: '{{or .ProfileName .PhoneNumber "Unknown user"}}'
displayname_template: '{{ printf "%s (%s) %s" (or .ProfileName .ContactName "Unknown user") (or .PhoneNumber "Unknown number" (or .AboutEmoji "")}}'
# -- 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?