Move RoomVersionId::V7 out of unstable-pre-spec
Matrix v1.1 stabilized room version 7.
This commit is contained in:
parent
d3679c1902
commit
57cbe491f0
@ -43,7 +43,6 @@ pub enum RoomVersionId {
|
|||||||
V6,
|
V6,
|
||||||
|
|
||||||
/// A version 7 room.
|
/// A version 7 room.
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
V7,
|
V7,
|
||||||
|
|
||||||
/// A version 8 room.
|
/// A version 8 room.
|
||||||
@ -70,7 +69,6 @@ impl RoomVersionId {
|
|||||||
Self::V4 => "4",
|
Self::V4 => "4",
|
||||||
Self::V5 => "5",
|
Self::V5 => "5",
|
||||||
Self::V6 => "6",
|
Self::V6 => "6",
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
Self::V7 => "7",
|
Self::V7 => "7",
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
#[cfg(feature = "unstable-pre-spec")]
|
||||||
Self::V8 => "8",
|
Self::V8 => "8",
|
||||||
@ -95,7 +93,6 @@ impl From<RoomVersionId> for String {
|
|||||||
RoomVersionId::V4 => "4".to_owned(),
|
RoomVersionId::V4 => "4".to_owned(),
|
||||||
RoomVersionId::V5 => "5".to_owned(),
|
RoomVersionId::V5 => "5".to_owned(),
|
||||||
RoomVersionId::V6 => "6".to_owned(),
|
RoomVersionId::V6 => "6".to_owned(),
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
RoomVersionId::V7 => "7".to_owned(),
|
RoomVersionId::V7 => "7".to_owned(),
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
#[cfg(feature = "unstable-pre-spec")]
|
||||||
RoomVersionId::V8 => "8".to_owned(),
|
RoomVersionId::V8 => "8".to_owned(),
|
||||||
@ -166,7 +163,6 @@ where
|
|||||||
"4" => RoomVersionId::V4,
|
"4" => RoomVersionId::V4,
|
||||||
"5" => RoomVersionId::V5,
|
"5" => RoomVersionId::V5,
|
||||||
"6" => RoomVersionId::V6,
|
"6" => RoomVersionId::V6,
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
"7" => RoomVersionId::V7,
|
"7" => RoomVersionId::V7,
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
#[cfg(feature = "unstable-pre-spec")]
|
||||||
"8" => RoomVersionId::V8,
|
"8" => RoomVersionId::V8,
|
||||||
|
@ -98,7 +98,6 @@ impl RoomVersion {
|
|||||||
..Self::V5
|
..Self::V5
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
pub const V7: Self = Self {
|
pub const V7: Self = Self {
|
||||||
// FIXME: once room version 7 is stabilized move this to version 8
|
// FIXME: once room version 7 is stabilized move this to version 8
|
||||||
disposition: RoomDisposition::Unstable,
|
disposition: RoomDisposition::Unstable,
|
||||||
@ -120,7 +119,6 @@ impl RoomVersion {
|
|||||||
RoomVersionId::V4 => Self::V4,
|
RoomVersionId::V4 => Self::V4,
|
||||||
RoomVersionId::V5 => Self::V5,
|
RoomVersionId::V5 => Self::V5,
|
||||||
RoomVersionId::V6 => Self::V6,
|
RoomVersionId::V6 => Self::V6,
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
|
||||||
RoomVersionId::V7 => Self::V7,
|
RoomVersionId::V7 => Self::V7,
|
||||||
#[cfg(feature = "unstable-pre-spec")]
|
#[cfg(feature = "unstable-pre-spec")]
|
||||||
RoomVersionId::V8 => Self::V8,
|
RoomVersionId::V8 => Self::V8,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user