Skip to content

Commit

Permalink
Update gvoice displayname template
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 25, 2024
1 parent 1569456 commit ac7e7f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 4 additions & 2 deletions bridgeconfig/gvoice.tpl.yaml
Original file line number Diff line number Diff line change
@@ -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" -}}
Expand Down

0 comments on commit ac7e7f2

Please sign in to comment.