mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-04-20 20:28:07 +03:00
Add Synapse module auto accept invite to rooms and direct messages (#3195)
* feat: auto-accept-invite module and docs * fix: name typos and some forgot to adjust variables * fix: accept only direct messages should work now and better wording * changed: only_direct_messages variable naming * feat: add logger, add synapse workers config * Fix typo and add details about synapse-auto-acccept-invite * Add newline at end of file * Fix alignment * Fix logger name for synapse_auto_accept_invite The name of the logger needs to match the name of the Python module. Ref: https://github.com/matrix-org/synapse-auto-accept-invite/blob/d673c6767862e0340e58f6e9947c7d90ec190201/synapse_auto_accept_invite/__init__.py#L20 * Add missing document start YAML annotation * Remove trailing spaces --------- Co-authored-by: Slavi Pantaleev <slavi@devture.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_synapse_modules: |
|
||||
{{
|
||||
matrix_synapse_modules | default([])
|
||||
+
|
||||
[
|
||||
{
|
||||
"module": "synapse_auto_accept_invite.InviteAutoAccepter",
|
||||
"config": {
|
||||
"accept_invites_only_for_direct_messages": matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_direct_messages,
|
||||
"worker_to_run_on": matrix_synapse_ext_synapse_auto_accept_invite_worker_to_run_on,
|
||||
},
|
||||
}]
|
||||
}}
|
||||
|
||||
matrix_synapse_additional_loggers_auto: >
|
||||
{{
|
||||
matrix_synapse_additional_loggers_auto
|
||||
+
|
||||
[{'name': 'synapse_auto_accept_invite', 'level': 'INFO'}]
|
||||
}}
|
||||
Reference in New Issue
Block a user