Skip to content

Commit

Permalink
feat: list_rooms add missing room_type field
Browse files Browse the repository at this point in the history
  • Loading branch information
kilimnik committed Jan 18, 2025
1 parent 5b5fd8b commit 47a3a6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rooms/list_rooms/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -161,7 +162,7 @@ pub struct RoomDetails {
pub joined_local_members: UInt,

/// Room version
pub version: String,
pub version: Option<String>,

/// User ID of the room creator.
#[serde(deserialize_with = "ruma::serde::empty_string_as_none")]
Expand Down Expand Up @@ -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<RoomType>,
}

0 comments on commit 47a3a6a

Please sign in to comment.