mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 22:43:52 +01:00
Add MSC2716 and MSC3030 to /versions
-> unstable_features
(#11582)
As suggested in https://github.com/matrix-org/matrix-react-sdk/pull/7372#discussion_r769523369
This commit is contained in:
parent
c7fe32edb4
commit
43f5cc7adc
3 changed files with 6 additions and 1 deletions
1
changelog.d/11582.misc
Normal file
1
changelog.d/11582.misc
Normal file
|
@ -0,0 +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.
|
|
@ -32,7 +32,7 @@ class ExperimentalConfig(Config):
|
||||||
# MSC3026 (busy presence state)
|
# MSC3026 (busy presence state)
|
||||||
self.msc3026_enabled: bool = experimental.get("msc3026_enabled", False)
|
self.msc3026_enabled: bool = experimental.get("msc3026_enabled", False)
|
||||||
|
|
||||||
# MSC2716 (backfill existing history)
|
# MSC2716 (importing historical messages)
|
||||||
self.msc2716_enabled: bool = experimental.get("msc2716_enabled", False)
|
self.msc2716_enabled: bool = experimental.get("msc2716_enabled", False)
|
||||||
|
|
||||||
# MSC2285 (hidden read receipts)
|
# MSC2285 (hidden read receipts)
|
||||||
|
|
|
@ -93,6 +93,10 @@ class VersionsRestServlet(RestServlet):
|
||||||
"org.matrix.msc3026.busy_presence": self.config.experimental.msc3026_enabled,
|
"org.matrix.msc3026.busy_presence": self.config.experimental.msc3026_enabled,
|
||||||
# Supports receiving hidden read receipts as per MSC2285
|
# Supports receiving hidden read receipts as per MSC2285
|
||||||
"org.matrix.msc2285": self.config.experimental.msc2285_enabled,
|
"org.matrix.msc2285": self.config.experimental.msc2285_enabled,
|
||||||
|
# Adds support for importing historical messages as per MSC2716
|
||||||
|
"org.matrix.msc2716": self.config.experimental.msc2716_enabled,
|
||||||
|
# Adds support for jump to date endpoints (/timestamp_to_event) as per MSC3030
|
||||||
|
"org.matrix.msc3030": self.config.experimental.msc3030_enabled,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue