Skip to content

Commit 8ff78f2

Browse files
committed
Update bridge configs
1 parent 501c8c7 commit 8ff78f2

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

bridgeconfig/meta.tpl.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ network:
1010
#
1111
# Remember to change the appservice id, bot profile info, bridge username_template and management_room_text too.
1212
mode: {{ .Params.meta_platform }}
13+
# Should users be allowed to pick messenger.com login when mode is set to `facebook`?
14+
allow_messenger_com_on_fb: true
1315
# When in Instagram mode, should the bridge connect to WhatsApp servers for encrypted chats?
1416
# In FB/Messenger mode encryption is always enabled, this option only affects Instagram mode.
1517
ig_e2ee: false
@@ -27,6 +29,8 @@ network:
2729
min_full_reconnect_interval_seconds: 3600
2830
# Interval to force refresh the connection (full reconnect), default is 20 hours. Set 0 to disable force refreshes.
2931
force_refresh_interval_seconds: 72000
32+
# Should connection state be cached to allow quicker restarts?
33+
cache_connection_state: false
3034
# Disable fetching XMA media (reels, stories, etc) when backfilling.
3135
disable_xma_backfill: true
3236
# Disable fetching XMA media entirely.

bridgeconfig/signal.tpl.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
# Network-specific config options
22
network:
33
# Displayname template for Signal users.
4-
displayname_template: {{ `'{{or .ContactName .ProfileName .PhoneNumber "Unknown user" }}'` }}
4+
displayname_template: {{ `'{{or .Nickname .ContactName .ProfileName .PhoneNumber "Unknown user" }}'` }}
55
# Should avatars from the user's contact list be used? This is not safe on multi-user instances.
66
use_contact_avatars: true
77
# Should the bridge sync ghost user info even if profile fetching fails? This is not safe on multi-user instances.
88
use_outdated_profiles: true
99
# Should the Signal user's phone number be included in the room topic in private chat portal rooms?
1010
number_in_topic: true
1111
# Default device name that shows up in the Signal app.
12-
device_name: {{ or .Params.device_name "Beeper (self-hosted, v2)" }}
12+
device_name: {{ or .Params.device_name "Beeper (self-hosted)" }}
1313
# Avatar image for the Note to Self room.
1414
note_to_self_avatar: mxc://maunium.net/REBIVrqjZwmaWpssCZpBlmlL
1515
# Format for generating URLs from location messages for sending to Signal.
1616
# Google Maps: 'https://www.google.com/maps/place/%[1]s,%[2]s'
1717
# OpenStreetMap: 'https://www.openstreetmap.org/?mlat=%[1]s&mlon=%[2]s'
1818
location_format: 'https://www.google.com/maps/place/%[1]s,%[2]s'
19+
# Should view-once messages disappear shortly after sending a read receipt on Matrix?
20+
disappear_view_once: true
1921

2022
{{ setfield . "CommandPrefix" "!signal" -}}
2123
{{ setfield . "DatabaseFileName" "mautrix-signal" -}}

bridgeconfig/slack.tpl.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ network:
1616
# .Profile.Pronouns - The pronouns of the user
1717
# .Profile.Email - The email address of the user
1818
# .Profile.Phone - The formatted phone number of the user
19-
displayname_template: '{{ `{{.Profile.DisplayName}}{{if .IsBot}} (bot){{end}}` }}'
19+
displayname_template: '{{ `{{or .Profile.DisplayName .Profile.RealName .Name}}{{if .IsBot}} (bot){{end}}` }}'
2020
# Channel name template for Slack channels (all types). Available variables:
2121
# .Name - The name of the channel
2222
# .TeamName - The name of the team the channel is in
@@ -31,7 +31,7 @@ network:
3131
# .IsShared - Whether the channel is shared with another workspace.
3232
# .IsExtShared - Whether the channel is shared with an external organization.
3333
# .IsOrgShared - Whether the channel is shared with an organization in the same enterprise grid.
34-
channel_name_template: '{{ `{{if or .IsNoteToSelf (not .IsIM)}}{{if and .IsChannel (not .IsPrivate)}}#{{end}}{{.Name}}{{if .IsNoteToSelf}} (you){{end}}{{end}}` }}'
34+
channel_name_template: '{{ `{{if or .IsNoteToSelf (and (not .IsIM) (not .IsMpIM))}}{{if and .IsChannel (not .IsPrivate)}}#{{end}}{{.Name}}{{if .IsNoteToSelf}} (you){{end}}{{end}}` }}'
3535
# Displayname template for Slack workspaces. Available variables:
3636
# .Name - The name of the team
3737
# .Domain - The Slack subdomain of the team
@@ -47,6 +47,8 @@ network:
4747
# Should channel participants only be synced when creating the room?
4848
# If you want participants to always be accurately synced, set participant_sync_count to a high value and this to false.
4949
participant_sync_only_on_create: true
50+
# Should channel portals be muted by default?
51+
mute_channels_by_default: true
5052
# Options for backfilling messages from Slack.
5153
backfill:
5254
# Number of conversations to fetch from Slack when syncing workspace.

bridgeconfig/twitter.tpl.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ network:
55
# .Username is replaced with the username of the Twitter user.
66
displayname_template: {{ `"{{ .DisplayName }}"` }}
77

8+
# Maximum number of conversations to sync on startup
9+
conversation_sync_limit: 20
10+
11+
# Should the bridge cache sessions instead of resyncing chats on every restart?
12+
cache_session: true
13+
14+
# Should the bridge use "X" instead of "Twitter" in certain places,
15+
# such as the management room welcome message and MSC2346 bridge info?
16+
x: false
17+
818
{{ setfield . "CommandPrefix" "!tw" -}}
919
{{ setfield . "DatabaseFileName" "mautrix-twitter" -}}
1020
{{ setfield . "BridgeTypeName" "Twitter" -}}

bridgeconfig/whatsapp.tpl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ network:
1919
# .BusinessName - validated WhatsApp business name
2020
# .Phone - phone number (international format)
2121
# .FullName - Name you set in the contacts list
22-
displayname_template: {{ `"{{or .FullName .BusinessName .PushName .JID}}"` }}
22+
displayname_template: {{ `'{{or .FullName .BusinessName .PushName .Phone .RedactedPhone "Unknown user"}}'` }}
2323

2424
# Should incoming calls send a message to the Matrix room?
2525
call_start_notices: true

0 commit comments

Comments
 (0)