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()`.
This commit is contained in:
Benjamin Bouvier
2024-06-13 13:50:50 +02:00
parent 9ccf94dc3c
commit b1c09ed61b

View File

@@ -572,12 +572,6 @@ impl Timeline {
Ok(Arc::new(EventTimelineItem(item)))
}
pub async fn latest_event(&self) -> Option<Arc<EventTimelineItem>> {
let latest_event = self.inner.latest_event().await;
latest_event.map(|item| Arc::new(EventTimelineItem(item)))
}
/// Redacts an event from the timeline.
///
/// Only works for events that exist as timeline items.