mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-17 02:38:18 -07:00
Enable room version 4
This commit is contained in:
parent
714873694d
commit
d8a3b257f2
@ -1,8 +1,6 @@
|
||||
use crate::{database::DatabaseGuard, Result, Ruma};
|
||||
use ruma::{
|
||||
api::client::discovery::get_capabilities::{
|
||||
use ruma::api::client::discovery::get_capabilities::{
|
||||
self, Capabilities, RoomVersionStability, RoomVersionsCapability,
|
||||
},
|
||||
};
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
|
@ -151,7 +151,7 @@ impl Globals {
|
||||
// Supported and stable room versions
|
||||
let stable_room_versions = vec![RoomVersionId::V6];
|
||||
// Experimental, partially supported room versions
|
||||
let unstable_room_versions = vec![RoomVersionId::V5];
|
||||
let unstable_room_versions = vec![RoomVersionId::V4, RoomVersionId::V5];
|
||||
|
||||
let s = Self {
|
||||
globals,
|
||||
|
@ -1845,7 +1845,6 @@ impl Rooms {
|
||||
})
|
||||
.transpose()?;
|
||||
|
||||
|
||||
// If there was no create event yet, assume we are creating a room with the default
|
||||
// version right now
|
||||
let room_version_id = create_event_content
|
||||
|
@ -2592,8 +2592,8 @@ pub async fn create_join_event_template_route(
|
||||
acl_check(sender_servername, &body.room_id, &db)?;
|
||||
|
||||
// TODO: Conduit does not implement restricted join rules yet, we always reject
|
||||
let join_rules_event = db
|
||||
.rooms
|
||||
let join_rules_event =
|
||||
db.rooms
|
||||
.room_state_get(&body.room_id, &StateEventType::RoomJoinRules, "")?;
|
||||
|
||||
let join_rules_event_content: Option<RoomJoinRulesEventContent> = join_rules_event
|
||||
|
Loading…
Reference in New Issue
Block a user