mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-10 19:21:06 +01:00
Mark unstable versions as unstable in /capabilities
This commit is contained in:
parent
37eb686b5b
commit
8c6e75a0cd
1 changed files with 2 additions and 8 deletions
|
@ -11,14 +11,8 @@ pub async fn get_capabilities_route(
|
|||
_body: Ruma<get_capabilities::v3::IncomingRequest>,
|
||||
) -> Result<get_capabilities::v3::Response> {
|
||||
let mut available = BTreeMap::new();
|
||||
if services().globals.allow_unstable_room_versions() {
|
||||
for room_version in &services().globals.unstable_room_versions {
|
||||
available.insert(room_version.clone(), RoomVersionStability::Stable);
|
||||
}
|
||||
} else {
|
||||
for room_version in &services().globals.unstable_room_versions {
|
||||
available.insert(room_version.clone(), RoomVersionStability::Unstable);
|
||||
}
|
||||
for room_version in &services().globals.unstable_room_versions {
|
||||
available.insert(room_version.clone(), RoomVersionStability::Unstable);
|
||||
}
|
||||
for room_version in &services().globals.stable_room_versions {
|
||||
available.insert(room_version.clone(), RoomVersionStability::Stable);
|
||||
|
|
Loading…
Reference in a new issue