Skip to content

Commit 89e1091

Browse files
authored
MSC3266-element-call (#12)
* MSC3266-element-call * add msc3266 support
1 parent cec6122 commit 89e1091

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.6.0
3+
version: 0.7.0

charts/synapse/templates/synapse-configmap.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,20 @@ data:
255255
search_all_users: {{ $.Values.synapse.search_all_users }}
256256
prefer_local_users: true
257257
web_client_location: "https://{{ $.Values.synapse.serverName }}/"
258-
{{- if $.Values.matrixAuthentication.enabled }}
258+
{{- if $.Values.synapse.max_event_delay_duration }}
259+
# The maximum allowed duration by which sent events can be delayed, as per MSC4140.
260+
max_event_delay_duration: {{ $.Values.synapse.max_event_delay_duration }}
261+
{{- end }}
262+
{{- if or $.Values.matrixAuthentication.enabled $.Values.experimentalFeatures.msc3266.enabled }}
259263
# https://matrix-org.github.io/matrix-authentication-service/setup/homeserver.html#configure-the-homeserver-to-delegate-authentication-to-the-service
260264
experimental_features:
265+
{{- if $.Values.experimentalFeatures.msc3266.enabled }}
266+
# MSC3266: Room summary API. Used for knocking over federation
267+
# MSC3266 allows to request a room summary of rooms you are not joined. The summary contains the room join rules.
268+
# We need that to decide if the user gets prompted with the option to knock ("Request to join call"), a cannot join error or the join view.
269+
msc3266:
270+
enabled: {{ $.Values.experimentalFeatures.msc3266.enabled }}
271+
{{- end }}
261272
{{- if $.Values.experimentalFeatures.msc3861.enabled }}
262273
msc3861: {{ $.Values.experimentalFeatures.msc3861 | toYaml | nindent 8 }}
263274
{{- end }}

charts/synapse/templates/well-known-configmap.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ data:
3838
"base_url":"https://vector.im"
3939
},
4040
{{- end }}
41+
{{- if .Values.experimentalFeatures.msc3266.enabled }}
42+
"org.matrix.msc4143.rtc_foci": [
43+
{
44+
"type": "livekit",
45+
"livekit_service_url": "https://{{ .Values.livekitServer.ingress.host }}"
46+
}
47+
],
48+
{{- end }}
4149
"jitsi": {
4250
"preferredDomain": "meet.jit.si"
4351
},

charts/synapse/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ synapse:
77
allow_device_name_lookup_over_federation: false
88
search_all_users: false
99
allow_public_rooms_over_federation: false
10+
# The maximum allowed duration by which sent events can be delayed, as per MSC4140.
11+
max_event_delay_duration: '' # 24h
1012
# cfg --
1113
image:
1214
repository: "ghcr.io/code-tool/matrix-stack/synapse"
@@ -143,6 +145,11 @@ synapse:
143145
rc_message:
144146
per_second: 100
145147
burst_count: 300
148+
# recommended for MSC3266
149+
# This needs to match at least the heart-beat frequency plus a bit of headroom
150+
# Currently the heart-beat is every 5 seconds which translates into a rate of 0.2s
151+
# per_second: 0.5
152+
# burst_count: 30
146153

147154
federation_domain_whitelist: []
148155

@@ -177,6 +184,8 @@ experimentalFeatures:
177184
client_secret: NOT-CONFIGURED
178185
admin_token: NOT-CONFIGURED
179186
account_management_url: NOT-CONFIGURED
187+
msc3266:
188+
enabled: false
180189

181190
ingress:
182191
secretName: ''
@@ -543,3 +552,7 @@ wellKnown:
543552

544553
resourceQuota:
545554
enabled: true
555+
556+
livekitServer:
557+
ingress:
558+
host: ''

0 commit comments

Comments
 (0)