diff --git a/CHANGELOG.md b/CHANGELOG.md index 3617d37..48986c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # [unreleased] +Breaking changes: + +* The list_room response changes the fields `version`, `join_rules`, `guest_access` and `history_visibility` to be an option +* The list_room response changes the `join_rules` field to be `Option` + +Improvement: + +* The list_room response now includes the `room_type` field + + # 0.7.0 * Upgrade to ruma 0.12.0 diff --git a/src/rooms/list_rooms/v1.rs b/src/rooms/list_rooms/v1.rs index fd36e12..3ab7af0 100644 --- a/src/rooms/list_rooms/v1.rs +++ b/src/rooms/list_rooms/v1.rs @@ -2,6 +2,7 @@ use ruma::{ api::{metadata, request, response, Metadata}, events::room::{guest_access::GuestAccess, history_visibility::HistoryVisibility}, + room::RoomType, serde::StringEnum, space::SpaceRoomJoinRule, OwnedRoomAliasId, OwnedRoomId, OwnedUserId, UInt, @@ -161,7 +162,7 @@ pub struct RoomDetails { pub joined_local_members: UInt, /// Room version - pub version: String, + pub version: Option, /// User ID of the room creator. #[serde(deserialize_with = "ruma::serde::empty_string_as_none")] @@ -189,4 +190,7 @@ pub struct RoomDetails { /// State events of the room. pub state_events: UInt, + + /// Room type of the room. + pub room_type: Option, }