Add stable unstable version for jump to date before v1.6
is fully supported on a homeserver (#10398)
Add stable unstable version (`org.matrix.msc3030.stable`) for jump to date [before `v1.6` is fully supported on a homeserver](https://github.com/matrix-org/synapse/issues/15089). Related to https://github.com/vector-im/element-web/issues/24362 but does not solve immediately because Synapse does not supply `org.matrix.msc3030.stable` yet Also refactored `ServerSupportUnstableFeatureController` to support multiple feature groups where any one of them will enable the setting. All features in a feature group are required. This way having either `org.matrix.msc3030` or `org.matrix.msc3030.stable` will enable the jump to date feature flag with a config of `[["org.matrix.msc3030"], ["org.matrix.msc3030.stable"]]`
This commit is contained in:
parent
f3f87054b4
commit
bc60e59eda
3 changed files with 74 additions and 24 deletions
|
@ -230,7 +230,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
|||
controller: new ServerSupportUnstableFeatureController(
|
||||
"feature_exploring_public_spaces",
|
||||
defaultWatchManager,
|
||||
["org.matrix.msc3827.stable"],
|
||||
[["org.matrix.msc3827.stable"]],
|
||||
undefined,
|
||||
_td("Requires your server to support the stable version of MSC3827"),
|
||||
),
|
||||
|
@ -372,7 +372,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
|||
controller: new ServerSupportUnstableFeatureController(
|
||||
"feature_jump_to_date",
|
||||
defaultWatchManager,
|
||||
["org.matrix.msc3030"],
|
||||
[["org.matrix.msc3030"], ["org.matrix.msc3030.stable"]],
|
||||
"v1.6",
|
||||
_td("Requires your server to support MSC3030"),
|
||||
),
|
||||
|
@ -388,7 +388,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
|||
controller: new ServerSupportUnstableFeatureController(
|
||||
"sendReadReceipts",
|
||||
defaultWatchManager,
|
||||
["org.matrix.msc2285.stable"],
|
||||
[["org.matrix.msc2285.stable"]],
|
||||
"v1.4",
|
||||
_td("Your server doesn't support disabling sending read receipts."),
|
||||
true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue