Skip to content

Commit 9a91bee

Browse files
committed
chore(ffi): Remove the old latest event API.
1 parent 412d4b8 commit 9a91bee

File tree

1 file changed

+1
-5
lines changed
  • bindings/matrix-sdk-ffi/src/room

1 file changed

+1
-5
lines changed

bindings/matrix-sdk-ffi/src/room/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use crate::{
4848
runtime::get_runtime_handle,
4949
timeline::{
5050
configuration::{TimelineConfiguration, TimelineFilter},
51-
EventTimelineItem, LatestEventValue, ReceiptType, SendHandle, Timeline,
51+
LatestEventValue, ReceiptType, SendHandle, Timeline,
5252
},
5353
utils::{u64_to_uint, AsyncRuntimeDropped},
5454
TaskHandle,
@@ -300,10 +300,6 @@ impl Room {
300300
.unwrap_or(false)
301301
}
302302

303-
async fn latest_event(&self) -> Option<EventTimelineItem> {
304-
self.inner.latest_event_item().await.map(Into::into)
305-
}
306-
307303
async fn new_latest_event(&self) -> LatestEventValue {
308304
self.inner.new_latest_event().await.into()
309305
}

0 commit comments

Comments
 (0)