From a2cffa9da30b04c02ecb752cc4ba128958dff1ba Mon Sep 17 00:00:00 2001 From: Nyaaori <+@nyaaori.cat> Date: Mon, 28 Nov 2022 14:17:00 +0100 Subject: [PATCH] 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. --- src/api/client_server/unversioned.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/client_server/unversioned.rs b/src/api/client_server/unversioned.rs index 8a5c3d25..598a2406 100644 --- a/src/api/client_server/unversioned.rs +++ b/src/api/client_server/unversioned.rs @@ -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)