Przeglądaj źródła

Merge pull request #2161 from meenzen/mautrix-discord-restricted-rooms-config

fix(mautrix-discord): allow configuring the restricted_rooms option
pull/2229/head
Slavi Pantaleev 3 lat temu
committed by GitHub
rodzic
commit
6c131138ad
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 9 dodań i 1 usunięć
  1. +4
    -0
      group_vars/matrix_servers
  2. +4
    -0
      roles/matrix-bridge-mautrix-discord/defaults/main.yml
  3. +1
    -1
      roles/matrix-bridge-mautrix-discord/templates/config.yaml.j2

+ 4
- 0
group_vars/matrix_servers Wyświetl plik

@@ -695,6 +695,10 @@ matrix_mautrix_discord_login_shared_secret: "{{ matrix_synapse_ext_password_prov
matrix_mautrix_discord_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
matrix_mautrix_discord_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'maudiscord.db') | to_uuid }}"

# Enabling bridge.restricted_rooms for this bridge does not work well with Conduit, so we disable it by default.
# This will be fixed in the upcoming `0.5.0` release of conduit.
matrix_mautrix_discord_bridge_restricted_rooms: "{{ false if matrix_homeserver_implementation == 'conduit' else true }}"

######################################################################
#
# /matrix-bridge-mautrix-discord


+ 4
- 0
roles/matrix-bridge-mautrix-discord/defaults/main.yml Wyświetl plik

@@ -140,3 +140,7 @@ matrix_mautrix_discord_registration: "{{ matrix_mautrix_discord_registration_yam
matrix_mautrix_discord_bridge_encryption_allow: false
matrix_mautrix_discord_bridge_encryption_default: "{{ matrix_mautrix_discord_bridge_encryption_allow }}"
matrix_mautrix_discord_bridge_encryption_key_sharing_allow: "{{ matrix_mautrix_discord_bridge_encryption_allow }}"

# On conduit this option may prevent you from joining spaces created by the bridge.
# Setting this to false fixes the issue.
matrix_mautrix_discord_bridge_restricted_rooms: true

+ 1
- 1
roles/matrix-bridge-mautrix-discord/templates/config.yaml.j2 Wyświetl plik

@@ -101,7 +101,7 @@ bridge:
message_error_notices: true
# Should the bridge use space-restricted join rules instead of invite-only for guild rooms?
# This can avoid unnecessary invite events in guild rooms when members are synced in.
restricted_rooms: true
restricted_rooms: {{ matrix_mautrix_discord_bridge_restricted_rooms|to_json }}
# Should the bridge update the m.direct account data event when double puppeting is enabled.
# Note that updating the m.direct event is not atomic (except with mautrix-asmux)
# and is therefore prone to race conditions.


Ładowanie…
Anuluj
Zapisz