Skip to content

Commit

Permalink
sdk-ui: fix typo in TimelineState::replace_with_remove_events
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Sep 12, 2024
1 parent 25111ac commit 5827bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/timeline/controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ impl<P: RoomDataProvider> TimelineController<P> {
// 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,
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/timeline/controller/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: RoomDataProvider>(
pub(super) async fn replace_with_remote_events<P: RoomDataProvider>(
&mut self,
events: Vec<SyncTimelineEvent>,
position: TimelineEnd,
Expand Down

0 comments on commit 5827bb7

Please sign in to comment.