瀏覽代碼

Merge branch 'master' into element-call-integration

element-call-integration
Slavi Pantaleev 11 月之前
父節點
當前提交
3ea1ea2f34
共有 3 個文件被更改,包括 20 次插入2 次删除
  1. +9
    -1
      roles/custom/matrix-bot-draupnir/tasks/validate_config.yml
  2. +10
    -1
      roles/custom/matrix-synapse/defaults/main.yml
  3. +1
    -0
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 9
- 1
roles/custom/matrix-bot-draupnir/tasks/validate_config.yml 查看文件

@@ -45,9 +45,17 @@
with_items:
- {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_pantalaimon_use }}"}
- {'name': 'matrix_bot_draupnir_config_accessToken', when: "{{ matrix_bot_draupnir_login_native }}"}
- {'name': 'matrix_bot_draupnir_pantalaimon_use', when: "{{ matrix_bot_draupnir_config_experimentalRustCrypto }}"}
when: "item.when | bool and not (vars[item.name] == '' or vars[item.name] is none)"

- name: Fail when matrix_bot_draupnir_config_experimentalRustCrypto is enabled together with matrix_bot_draupnir_pantalaimon_use
ansible.builtin.fail:
msg: >-
Your configuration is trying to enable matrix_bot_draupnir_config_experimentalRustCrypto and matrix_bot_draupnir_pantalaimon_use at the same time.
These settings are mutually incompatible and therefore cant be used at the same time.
when:
- matrix_bot_draupnir_pantalaimon_use
- matrix_bot_draupnir_config_experimentalRustCrypto

- when: "matrix_bot_draupnir_pantalaimon_use == 'true' and matrix_bot_draupnir_pantalaimon_breakage_ignore == 'false'"
block:
- name: Inject warning if Pantalaimon is used together with Draupnir


+ 10
- 1
roles/custom/matrix-synapse/defaults/main.yml 查看文件

@@ -468,6 +468,13 @@ matrix_synapse_rc_federation:

matrix_synapse_federation_rr_transactions_per_room_per_second: 50

# Controls the rate limit for delayed event management.
#
# This is only applied if `matrix_synapse_experimental_features_msc4140_enabled` is set to `true`.
matrix_synapse_rc_delayed_event_mgmt:
per_second: 1
burst_count: 20

# Controls the templates directory setting.
#
# See:
@@ -1265,7 +1272,9 @@ matrix_synapse_experimental_features_msc3266_enabled: true
# Delayed events are required for proper call (Element Call) participation signalling.
# If disabled it is very likely that you end up with stuck calls in Matrix rooms.
#
# Related to `matrix_synapse_max_event_delay_duration`
# Related to:
# - `matrix_synapse_max_event_delay_duration`
# - `matrix_synapse_rc_delayed_event_mgmt`
#
# See https://github.com/matrix-org/matrix-spec-proposals/pull/4140
matrix_synapse_experimental_features_msc4140_enabled: false


+ 1
- 0
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 查看文件

@@ -2999,6 +2999,7 @@ experimental_features:

{% if matrix_synapse_experimental_features_msc4140_enabled %}
max_event_delay_duration: {{ matrix_synapse_max_event_delay_duration | to_json }}
rc_delayed_event_mgmt: {{ matrix_synapse_rc_delayed_event_mgmt | to_json }}
{% endif %}

# vim:ft=yaml

Loading…
取消
儲存