fix: Declare support for msc3827

Not doing so causes recent matrix-react-sdk versions to set room_types to null
instead of omitting, which is against spec and results in ruma throwing
an error, resulting in room listings being entirely unavailable for users
of element-web and other matrix-react-sdk based clients

We also pass room_types over federation already,
not declaring support means compliant clients will not make use of said feature.
This commit is contained in:
Nyaaori 2022-11-28 14:17:00 +01:00
parent 4b737b46ac
commit a2cffa9da3
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E

View file

@ -24,7 +24,10 @@ pub async fn get_supported_versions_route(
"v1.1".to_owned(),
"v1.2".to_owned(),
],
unstable_features: BTreeMap::from_iter([("org.matrix.e2e_cross_signing".to_owned(), true)]),
unstable_features: BTreeMap::from_iter([
("org.matrix.e2e_cross_signing".to_owned(), true),
("org.matrix.msc3827.stable".to_owned(), true),
]),
};
Ok(resp)