refactor: Fix errors in api/client/thirdparty.rs

This commit is contained in:
Ginger
2026-04-12 10:46:48 -04:00
parent a215b63077
commit e50e24e22d
+2 -2
View File
@@ -11,8 +11,8 @@
pub(crate) async fn get_protocols_route(
_body: Ruma<get_protocols::v3::Request>,
) -> Result<get_protocols::v3::Response> {
// TODO
Ok(get_protocols::v3::Response { protocols: BTreeMap::new() })
// We don't support this at all
Ok(get_protocols::v3::Response::new(BTreeMap::new()))
}
/// # `GET /_matrix/client/unstable/thirdparty/protocols`