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 committed May 31, 2024
1 parent 0afe48f commit 21cb7ea
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 @@ -443,3 +443,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
self.msc3823_account_suspension = experimental.get(
"msc3823_account_suspension", False
)

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

0 comments on commit 21cb7ea

Please sign in to comment.