Skip to content

Commit b1c09ed

Browse files
committed
ffi: get rid of Timeline::latest_event()
It's unlikely to be useful as per the `Timeline` object: rather, callers should make use of `Room::latest_event()`.
1 parent 9ccf94d commit b1c09ed

File tree

1 file changed

+0
-6
lines changed
  • bindings/matrix-sdk-ffi/src/timeline

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,6 @@ impl Timeline {
572572
Ok(Arc::new(EventTimelineItem(item)))
573573
}
574574

575-
pub async fn latest_event(&self) -> Option<Arc<EventTimelineItem>> {
576-
let latest_event = self.inner.latest_event().await;
577-
578-
latest_event.map(|item| Arc::new(EventTimelineItem(item)))
579-
}
580-
581575
/// Redacts an event from the timeline.
582576
///
583577
/// Only works for events that exist as timeline items.

0 commit comments

Comments
 (0)