From 42e1aaea68bad451cc23600ad849925ad6df144e Mon Sep 17 00:00:00 2001 From: Hanadi Date: Tue, 16 Jan 2024 15:36:08 +0100 Subject: [PATCH] feat: add msc4028 to versions api (#16787) Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- changelog.d/16787.feature | 1 + synapse/rest/client/versions.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/16787.feature diff --git a/changelog.d/16787.feature b/changelog.d/16787.feature new file mode 100644 index 00000000000..cd11e3fa5d7 --- /dev/null +++ b/changelog.d/16787.feature @@ -0,0 +1 @@ +Advertise experimental support for [MSC4028](https://github.com/matrix-org/matrix-spec-proposals/pull/4028) through `/_matrix/clients/versions` if enabled. Contributed by @hanadi92. \ No newline at end of file diff --git a/synapse/rest/client/versions.py b/synapse/rest/client/versions.py index 4c5d3dba661..6bb9684e1c7 100644 --- a/synapse/rest/client/versions.py +++ b/synapse/rest/client/versions.py @@ -134,6 +134,8 @@ def on_GET(self, request: Request) -> Tuple[int, JsonDict]: "org.matrix.msc3391": self.config.experimental.msc3391_enabled, # Allows clients to inhibit profile update propagation. "org.matrix.msc4069": self.config.experimental.msc4069_profile_inhibit_propagation, + # Allows clients to handle push for encrypted events. + "org.matrix.msc4028": self.config.experimental.msc4028_push_encrypted_events, }, }, )