mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 19:16:02 -04:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user