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 16, 2025
1 parent 5b5fd8b commit 031a45f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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 @@ -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 031a45f

Please sign in to comment.