From ac7e7f2310ad3cb2e983f22668c08d1e4e64d726 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 26 Aug 2024 00:06:36 +0300 Subject: [PATCH] Update gvoice displayname template --- CHANGELOG.md | 5 +++++ bridgeconfig/gvoice.tpl.yaml | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02e1c81..3fd8742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# unreleased + +* Added support for Google Voice bridge. +* Fixed running Meta bridge without specifying platform. + # v0.12.1 (2024-08-17) * Bumped minimum Go version to 1.22. diff --git a/bridgeconfig/gvoice.tpl.yaml b/bridgeconfig/gvoice.tpl.yaml index 861f4a5..778cae4 100644 --- a/bridgeconfig/gvoice.tpl.yaml +++ b/bridgeconfig/gvoice.tpl.yaml @@ -1,9 +1,11 @@ # Network-specific config options network: # Displayname template for SMS users. Available variables: - # .Name (same as phone number in most cases) + # .Name - same as phone number in most cases + # .Contact.Name - name from contact list + # .Contact.FirstName - first name from contact list # .PhoneNumber - displayname_template: {{ `"{{.Name}}"` }} + displayname_template: {{ `"{{ or .Contact.Name .Name }}"` }} {{ setfield . "CommandPrefix" "!gv" -}} {{ setfield . "DatabaseFileName" "mautrix-gvoice" -}}