From 654e0e91f5f35a974f7fac10afab0f2b28e2041f Mon Sep 17 00:00:00 2001 From: Aine Date: Sat, 2 Mar 2024 11:46:45 +0200 Subject: [PATCH] mautrix-meta: enable spaces; add a hint into the display name --- .../matrix-bridge-mautrix-meta-instagram/defaults/main.yml | 6 +++++- .../templates/config.yaml.j2 | 2 +- .../matrix-bridge-mautrix-meta-messenger/defaults/main.yml | 6 +++++- .../templates/config.yaml.j2 | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/roles/custom/matrix-bridge-mautrix-meta-instagram/defaults/main.yml b/roles/custom/matrix-bridge-mautrix-meta-instagram/defaults/main.yml index da027a43b..2ce0d1c13 100644 --- a/roles/custom/matrix-bridge-mautrix-meta-instagram/defaults/main.yml +++ b/roles/custom/matrix-bridge-mautrix-meta-instagram/defaults/main.yml @@ -179,7 +179,7 @@ matrix_mautrix_meta_instagram_bridge_username_prefix: |- # Changing this may require that you change the regex in the appservice. matrix_mautrix_meta_instagram_bridge_username_template: "{{ matrix_mautrix_meta_instagram_bridge_username_prefix + '{{.}}' }}" -matrix_mautrix_meta_instagram_bridge_displayname_template: '{% raw %}{{or .DisplayName .Username "Unknown user"}}{% endraw %}' +matrix_mautrix_meta_instagram_bridge_displayname_template: '{% raw %}{{or .DisplayName .Username "Unknown user"}} (IG){% endraw %}' # The prefix for commands. Only required in non-management rooms. # If set to "default", will be determined based on meta -> mode (`matrix_mautrix_meta_instagram_meta_mode`): @@ -191,6 +191,10 @@ matrix_mautrix_meta_instagram_bridge_command_prefix: default # If false, created portal rooms will never be federated. matrix_mautrix_meta_instagram_bridge_federate_rooms: true +# Should the bridge create a space for each logged-in user and add bridged rooms to it? +# Users who logged in before turning this on should run `!meta sync-space` to create and fill the space for the first time. +matrix_mautrix_meta_instagram_bridge_personal_filtering_spaces: true + # Enable End-to-bridge encryption matrix_mautrix_meta_instagram_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}" matrix_mautrix_meta_instagram_bridge_encryption_default: "{{ matrix_mautrix_meta_instagram_bridge_encryption_allow }}" diff --git a/roles/custom/matrix-bridge-mautrix-meta-instagram/templates/config.yaml.j2 b/roles/custom/matrix-bridge-mautrix-meta-instagram/templates/config.yaml.j2 index fe1287cc5..e48adf4b5 100644 --- a/roles/custom/matrix-bridge-mautrix-meta-instagram/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-mautrix-meta-instagram/templates/config.yaml.j2 @@ -124,7 +124,7 @@ bridge: # Should the bridge create a space for each logged-in user and add bridged rooms to it? # Users who logged in before turning this on should run `!meta sync-space` to create and fill the space for the first time. - personal_filtering_spaces: false + personal_filtering_spaces: {{ matrix_mautrix_meta_instagram_bridge_personal_filtering_spaces | to_json }} # Should Matrix m.notice-type messages be bridged? bridge_notices: true # Should the bridge send a read receipt from the bridge bot when a message has been sent to FB/IG? diff --git a/roles/custom/matrix-bridge-mautrix-meta-messenger/defaults/main.yml b/roles/custom/matrix-bridge-mautrix-meta-messenger/defaults/main.yml index e7d6ed321..6b8ede976 100644 --- a/roles/custom/matrix-bridge-mautrix-meta-messenger/defaults/main.yml +++ b/roles/custom/matrix-bridge-mautrix-meta-messenger/defaults/main.yml @@ -179,7 +179,7 @@ matrix_mautrix_meta_messenger_bridge_username_prefix: |- # Changing this may require that you change the regex in the appservice. matrix_mautrix_meta_messenger_bridge_username_template: "{{ matrix_mautrix_meta_messenger_bridge_username_prefix + '{{.}}' }}" -matrix_mautrix_meta_messenger_bridge_displayname_template: '{% raw %}{{or .DisplayName .Username "Unknown user"}}{% endraw %}' +matrix_mautrix_meta_messenger_bridge_displayname_template: '{% raw %}{{or .DisplayName .Username "Unknown user"}} (FB){% endraw %}' # The prefix for commands. Only required in non-management rooms. # If set to "default", will be determined based on meta -> mode (`matrix_mautrix_meta_messenger_meta_mode`): @@ -191,6 +191,10 @@ matrix_mautrix_meta_messenger_bridge_command_prefix: default # If false, created portal rooms will never be federated. matrix_mautrix_meta_messenger_bridge_federate_rooms: true +# Should the bridge create a space for each logged-in user and add bridged rooms to it? +# Users who logged in before turning this on should run `!meta sync-space` to create and fill the space for the first time. +matrix_mautrix_meta_messenger_bridge_personal_filtering_spaces: true + # Enable End-to-bridge encryption matrix_mautrix_meta_messenger_bridge_encryption_allow: "{{ matrix_bridges_encryption_enabled }}" matrix_mautrix_meta_messenger_bridge_encryption_default: "{{ matrix_mautrix_meta_messenger_bridge_encryption_allow }}" diff --git a/roles/custom/matrix-bridge-mautrix-meta-messenger/templates/config.yaml.j2 b/roles/custom/matrix-bridge-mautrix-meta-messenger/templates/config.yaml.j2 index 09bb0c424..e2562c367 100644 --- a/roles/custom/matrix-bridge-mautrix-meta-messenger/templates/config.yaml.j2 +++ b/roles/custom/matrix-bridge-mautrix-meta-messenger/templates/config.yaml.j2 @@ -124,7 +124,7 @@ bridge: # Should the bridge create a space for each logged-in user and add bridged rooms to it? # Users who logged in before turning this on should run `!meta sync-space` to create and fill the space for the first time. - personal_filtering_spaces: false + personal_filtering_spaces: {{ matrix_mautrix_meta_messenger_bridge_personal_filtering_spaces | to_json }} # Should Matrix m.notice-type messages be bridged? bridge_notices: true # Should the bridge send a read receipt from the bridge bot when a message has been sent to FB/IG?