advertise support for MSC4133 and MSC4175

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-09-08 19:53:33 -04:00
parent 38cd88e1e8
commit 61347bee06
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,7 @@ use ruma::{
},
RoomVersionId,
};
use serde_json::json;
use crate::{Result, Ruma};
@ -42,6 +43,11 @@ pub(crate) async fn get_capabilities_route(
enabled: false,
};
// MSC4133 capability
capabilities
.set("uk.tcpip.msc4133.profile_fields", json!({"enabled": true}))
.expect("this is valid JSON we created");
Ok(get_capabilities::v3::Response {
capabilities,
})