Skip to content

Commit

Permalink
Support MSC3916 by adding unstable media endpoints to _matrix/client (
Browse files Browse the repository at this point in the history
element-hq#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
element-hq#17172).

Should be reviewable commit-by-commit.
  • Loading branch information
H-Shay authored and Mic92 committed Jun 14, 2024
1 parent cb37198 commit dc6b12e
Show file tree
Hide file tree
Showing 7 changed files with 2,393 additions and 549 deletions.
1 change: 1 addition & 0 deletions changelog.d/17213.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support MSC3916 by adding unstable media endpoints to `_matrix/client` (#17213).
4 changes: 4 additions & 0 deletions synapse/config/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,3 +439,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
self.msc4115_membership_on_events = experimental.get(
"msc4115_membership_on_events", False
)

self.msc3916_authenticated_media_enabled = experimental.get(
"msc3916_authenticated_media_enabled", False
)
Loading

0 comments on commit dc6b12e

Please sign in to comment.