mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 14:53:58 +02:00
fix(hydra): Stop enforcing unfederated v12 rooms
This commit is contained in:
parent
9dc336b5e8
commit
cc58e5d749
1 changed files with 0 additions and 8 deletions
|
@ -157,10 +157,6 @@ pub(crate) async fn create_room_route(
|
||||||
.try_into()
|
.try_into()
|
||||||
.map_err(|e| err!(Request(BadJson("Invalid creation content: {e}"))))?,
|
.map_err(|e| err!(Request(BadJson("Invalid creation content: {e}"))))?,
|
||||||
);
|
);
|
||||||
if room_version == V12 {
|
|
||||||
// TODO(hydra): v12 rooms cannot be federated until they are stable.
|
|
||||||
content.insert("m.federate".into(), false.into());
|
|
||||||
}
|
|
||||||
content
|
content
|
||||||
},
|
},
|
||||||
| None => {
|
| None => {
|
||||||
|
@ -175,10 +171,6 @@ pub(crate) async fn create_room_route(
|
||||||
let mut content =
|
let mut content =
|
||||||
serde_json::from_str::<CanonicalJsonObject>(to_raw_value(&content)?.get())?;
|
serde_json::from_str::<CanonicalJsonObject>(to_raw_value(&content)?.get())?;
|
||||||
content.insert("room_version".into(), json!(room_version.as_str()).try_into()?);
|
content.insert("room_version".into(), json!(room_version.as_str()).try_into()?);
|
||||||
if room_version == V12 {
|
|
||||||
// TODO(hydra): v12 rooms cannot be federated until they are stable.
|
|
||||||
content.insert("m.federate".into(), false.into());
|
|
||||||
}
|
|
||||||
content
|
content
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue