mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
feat(ffi): Make RoomList::entries async.
Because we can!
This commit is contained in:
@@ -72,12 +72,11 @@ impl RoomList {
|
||||
})))
|
||||
}
|
||||
|
||||
fn entries(
|
||||
async fn entries(
|
||||
&self,
|
||||
listener: Box<dyn RoomListEntriesListener>,
|
||||
) -> Result<RoomListEntriesResult, RoomListError> {
|
||||
let (entries, entries_stream) =
|
||||
RUNTIME.block_on(async { self.inner.entries().await.map_err(RoomListError::from) })?;
|
||||
let (entries, entries_stream) = self.inner.entries().await.map_err(RoomListError::from)?;
|
||||
|
||||
Ok(RoomListEntriesResult {
|
||||
entries: entries.iter().map(Into::into).collect(),
|
||||
|
||||
Reference in New Issue
Block a user