diff --git a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs index 1308859494..33e47371fb 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 7aebfb4f4f..ef71404296 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,