Can get room messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user