summary refs log tree commit diff
diff options
context:
space:
mode:
authorHanadi <hanadi.tamimi@gmail.com>2024-01-16 15:36:08 +0100
committerGitHub <noreply@github.com>2024-01-16 14:36:08 +0000
commit42e1aaea68bad451cc23600ad849925ad6df144e (patch)
tree96c034996c6b2af25a8f785906661c0a82c48da8
parentBump ruff from 0.1.7 to 0.1.13 (#16814) (diff)
downloadsynapse-42e1aaea68bad451cc23600ad849925ad6df144e.tar.xz
feat: add msc4028 to versions api (#16787)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-rw-r--r--changelog.d/16787.feature1
-rw-r--r--synapse/rest/client/versions.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.d/16787.feature b/changelog.d/16787.feature
new file mode 100644
index 0000000000..cd11e3fa5d
--- /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 4c5d3dba66..6bb9684e1c 100644
--- a/synapse/rest/client/versions.py
+++ b/synapse/rest/client/versions.py
@@ -134,6 +134,8 @@ class VersionsRestServlet(RestServlet):
                     "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,
                 },
             },
         )