Can get room messages

This commit is contained in:
2025-11-24 12:36:59 +01:00
parent 7562a7fc61
commit bf119a34fb
3 changed files with 42 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ impl APIRoomInfo {
is_space: r.is_space(),
parents: parent_spaces,
number_unread_messages: r.num_unread_messages(),
latest_event: get_events(r, 1).await?.messages.into_iter().next(),
latest_event: get_events(r, 1, None).await?.messages.into_iter().next(),
})
}
}
@@ -83,7 +83,7 @@ pub async fn get_joined_spaces(client: MatrixClientExtractor) -> HttpResult {
#[derive(serde::Deserialize)]
pub struct RoomIdInPath {
id: OwnedRoomId,
pub(crate) id: OwnedRoomId,
}
/// Get the list of joined rooms of the user