Skip to content

Commit

Permalink
Allow configuring device name of bridges via --param
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 27, 2023
1 parent b7631f1 commit 7cfb3de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bridgeconfig/gmessages.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ metrics:

google_messages:
# OS name to tell the phone. This is the name that shows up in the paired devices list.
os: Beeper (self-hosted)
os: {{ or .Params.device_name "Beeper (self-hosted)" }}
# Browser type to tell the phone. This decides which icon is shown.
# Valid types: OTHER, CHROME, FIREFOX, SAFARI, OPERA, IE, EDGE
browser: OTHER
Expand Down
3 changes: 3 additions & 0 deletions bridgeconfig/imessagego.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ analytics:
# Optional user ID for tracking events. If null, defaults to using Matrix user ID.
user_id: null

imessage:
device_name: {{ or .Params.device_name "Beeper (self-hosted)" }}

# Bridge config
bridge:
# Localpart template of MXIDs for iMessage users.
Expand Down
2 changes: 1 addition & 1 deletion bridgeconfig/telegram.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ telegram:
# Device info sent to Telegram.
device_info:
# "auto" = OS name+version.
device_model: Beeper (self-hosted)
device_model: {{ or .Params.device_name "Beeper (self-hosted)" }}
# "auto" = Telethon version.
system_version: auto
# "auto" = mautrix-telegram version.
Expand Down
2 changes: 1 addition & 1 deletion bridgeconfig/whatsapp.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ metrics:
# Config for things that are directly sent to WhatsApp.
whatsapp:
# Device name that's shown in the "WhatsApp Web" section in the mobile app.
os_name: Beeper (self-hosted)
os_name: {{ or .Params.device_name "Beeper (self-hosted)" }}
# Browser name that determines the logo shown in the mobile app.
# Must be "unknown" for a generic icon or a valid browser name if you want a specific icon.
# List of valid browser names: https://github.com/tulir/whatsmeow/blob/efc632c008604016ddde63bfcfca8de4e5304da9/binary/proto/def.proto#L43-L64
Expand Down

0 comments on commit 7cfb3de

Please sign in to comment.