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
#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.
  • Loading branch information
H-Shay committed May 24, 2024
1 parent c97251d commit 9edb725
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 9edb725

Please sign in to comment.