diff --git a/changelog.d/1622.doc b/changelog.d/1622.doc new file mode 100644 index 000000000..28d4b9452 --- /dev/null +++ b/changelog.d/1622.doc @@ -0,0 +1 @@ +Updated config docs to state we support room version 12, and set it as default. Contributed by @ezera. diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 41be26161..dde9eda63 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -619,7 +619,7 @@ # Set to false to disable users from joining or creating room versions # that aren't officially supported by continuwuity. # -# continuwuity officially supports room versions 6 - 11. +# continuwuity officially supports room versions 6 - 12. # # continuwuity has slightly experimental (though works fine in practice) # support for versions 3 - 5. @@ -631,9 +631,9 @@ # rather than an integer. Forgetting the quotes will make the server fail # to start! # -# Per spec, room version "11" is the default. +# Per spec, room version "12" is the default. # -#default_room_version = "11" +#default_room_version = "12" # Enable OpenTelemetry OTLP tracing export. This replaces the deprecated # Jaeger exporter. Traces will be sent via OTLP to a collector (such as diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index a5772a8ce..e92366632 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -753,7 +753,7 @@ pub struct Config { /// Set to false to disable users from joining or creating room versions /// that aren't officially supported by continuwuity. /// - /// continuwuity officially supports room versions 6 - 11. + /// continuwuity officially supports room versions 6 - 12. /// /// continuwuity has slightly experimental (though works fine in practice) /// support for versions 3 - 5. @@ -765,9 +765,9 @@ pub struct Config { /// rather than an integer. Forgetting the quotes will make the server fail /// to start! /// - /// Per spec, room version "11" is the default. + /// Per spec, room version "12" is the default. /// - /// default: "11" + /// default: "12" #[serde(default = "default_default_room_version")] pub default_room_version: RoomVersionId, @@ -2828,7 +2828,7 @@ fn default_rocksdb_stats_level() -> u8 { 1 } // I know, it's a great name #[must_use] #[inline] -pub fn default_default_room_version() -> RoomVersionId { RoomVersionId::V11 } +pub fn default_default_room_version() -> RoomVersionId { RoomVersionId::V12 } fn default_ip_range_denylist() -> Vec { vec![