Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 43f5cc7

Browse files
Add MSC2716 and MSC3030 to /versions -> unstable_features (#11582)
As suggested in matrix-org/matrix-react-sdk#7372 (comment)
1 parent c7fe32e commit 43f5cc7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelog.d/11582.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) and [MSC3030](https://github.com/matrix-org/matrix-doc/pull/3030) to `/versions` -> `unstable_features` to detect server support.

synapse/config/experimental.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def read_config(self, config: JsonDict, **kwargs):
3232
# MSC3026 (busy presence state)
3333
self.msc3026_enabled: bool = experimental.get("msc3026_enabled", False)
3434

35-
# MSC2716 (backfill existing history)
35+
# MSC2716 (importing historical messages)
3636
self.msc2716_enabled: bool = experimental.get("msc2716_enabled", False)
3737

3838
# MSC2285 (hidden read receipts)

synapse/rest/client/versions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ def on_GET(self, request: Request) -> Tuple[int, JsonDict]:
9393
"org.matrix.msc3026.busy_presence": self.config.experimental.msc3026_enabled,
9494
# Supports receiving hidden read receipts as per MSC2285
9595
"org.matrix.msc2285": self.config.experimental.msc2285_enabled,
96+
# Adds support for importing historical messages as per MSC2716
97+
"org.matrix.msc2716": self.config.experimental.msc2716_enabled,
98+
# Adds support for jump to date endpoints (/timestamp_to_event) as per MSC3030
99+
"org.matrix.msc3030": self.config.experimental.msc3030_enabled,
96100
},
97101
},
98102
)

0 commit comments

Comments
 (0)