Skip to content

Commit 9edb725

Browse files
authored
Support MSC3916 by adding unstable media endpoints to _matrix/client (#17213)
[MSC3916](https://github.com/matrix-org/matrix-spec-proposals/blob/rav/authentication-for-media/proposals/3916-authentication-for-media.md) adds new media endpoints under `_matrix/client`. This PR adds the `/preview_url`, `/config`, and `/thumbnail` endpoints. `/download` will be added in a follow-up PR once the work for the federation `/download` endpoint is complete (see #17172). Should be reviewable commit-by-commit.
1 parent c97251d commit 9edb725

File tree

7 files changed

+2393
-549
lines changed

7 files changed

+2393
-549
lines changed

changelog.d/17213.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support MSC3916 by adding unstable media endpoints to `_matrix/client` (#17213).

synapse/config/experimental.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
439439
self.msc4115_membership_on_events = experimental.get(
440440
"msc4115_membership_on_events", False
441441
)
442+
443+
self.msc3916_authenticated_media_enabled = experimental.get(
444+
"msc3916_authenticated_media_enabled", False
445+
)

0 commit comments

Comments
 (0)