File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/matrix-sdk-ui/src/timeline/controller Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1529,7 +1529,7 @@ impl TimelineController {
15291529 /// it's folded into another timeline item.
15301530 pub ( crate ) async fn latest_event_id ( & self ) -> Option < OwnedEventId > {
15311531 let state = self . state . read ( ) . await ;
1532- state. meta . all_remote_events . back ( ) . map ( |event_meta| & event_meta. event_id ) . cloned ( )
1532+ state. meta . all_remote_events . last ( ) . map ( |event_meta| & event_meta. event_id ) . cloned ( )
15331533 }
15341534}
15351535
Original file line number Diff line number Diff line change @@ -1183,7 +1183,7 @@ impl AllRemoteEvents {
11831183 }
11841184
11851185 /// Return a reference to the last remote event if it exists.
1186- pub fn back ( & self ) -> Option < & EventMeta > {
1186+ pub fn last ( & self ) -> Option < & EventMeta > {
11871187 self . 0 . back ( )
11881188 }
11891189}
You can’t perform that action at this time.
0 commit comments