diff --git a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs index 13088594940..33e47371fb2 100644 --- a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs @@ -652,7 +652,7 @@ impl TimelineController

{ // now we may want to replace a populated timeline with an empty one. if !state.items.is_empty() || !events.is_empty() { state - .replace_with_remove_events( + .replace_with_remote_events( events, TimelineEnd::Back, origin, diff --git a/crates/matrix-sdk-ui/src/timeline/controller/state.rs b/crates/matrix-sdk-ui/src/timeline/controller/state.rs index 7aebfb4f4f3..ef71404296b 100644 --- a/crates/matrix-sdk-ui/src/timeline/controller/state.rs +++ b/crates/matrix-sdk-ui/src/timeline/controller/state.rs @@ -279,7 +279,7 @@ impl TimelineState { /// Note: when the `position` is [`TimelineEnd::Front`], prepended events /// should be ordered in *reverse* topological order, that is, `events[0]` /// is the most recent. - pub(super) async fn replace_with_remove_events( + pub(super) async fn replace_with_remote_events( &mut self, events: Vec, position: TimelineEnd,