Skip to content

Commit d12120d

Browse files
committed
Also add msc4190 support for mautrix-telegram
1 parent 18fb054 commit d12120d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

roles/custom/matrix-bridge-mautrix-telegram/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ matrix_mautrix_telegram_appservice_public_external: '{{ matrix_mautrix_telegram_
8484

8585
matrix_mautrix_telegram_appservice_bot_username: telegrambot
8686

87+
matrix_mautrix_telegram_msc4190_enabled: "{{ matrix_bridges_msc4190_enabled }}"
88+
8789
# Specifies the default log level for all bridge loggers.
8890
matrix_mautrix_telegram_logging_level: WARNING
8991

@@ -239,6 +241,7 @@ matrix_mautrix_telegram_registration_yaml: |
239241
url: {{ matrix_mautrix_telegram_appservice_address }}
240242
rate_limited: false
241243
de.sorunome.msc2409.push_ephemeral: true
244+
io.element.msc4190: {{ matrix_mautrix_telegram_msc4190_enabled | to_json }}
242245

243246
matrix_mautrix_telegram_registration: "{{ matrix_mautrix_telegram_registration_yaml | from_yaml }}"
244247

roles/custom/matrix-bridge-mautrix-telegram/templates/config.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ bridge:
269269
default: {{ matrix_mautrix_telegram_bridge_encryption_default|to_json }}
270270
# Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
271271
appservice: false
272+
# Whether to use MSC4190 instead of appservice login to create the bridge bot device.
273+
# Requires the homeserver to support MSC4190 and the device masquerading parts of MSC3202.
274+
# Only relevant when using end-to-bridge encryption, required when using encryption with next-gen auth (MSC3861).
275+
# Changing this option requires updating the appservice registration file.
276+
msc4190: {{ matrix_mautrix_telegram_msc4190_enabled | to_json }}
272277
# Require encryption, drop any unencrypted messages.
273278
require: false
274279
# Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.

0 commit comments

Comments
 (0)