Skip to content

Commit 5827bb7

Browse files
committed
sdk-ui: fix typo in TimelineState::replace_with_remove_events
1 parent 25111ac commit 5827bb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/matrix-sdk-ui/src/timeline/controller/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ impl<P: RoomDataProvider> TimelineController<P> {
652652
// now we may want to replace a populated timeline with an empty one.
653653
if !state.items.is_empty() || !events.is_empty() {
654654
state
655-
.replace_with_remove_events(
655+
.replace_with_remote_events(
656656
events,
657657
TimelineEnd::Back,
658658
origin,

crates/matrix-sdk-ui/src/timeline/controller/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl TimelineState {
279279
/// Note: when the `position` is [`TimelineEnd::Front`], prepended events
280280
/// should be ordered in *reverse* topological order, that is, `events[0]`
281281
/// is the most recent.
282-
pub(super) async fn replace_with_remove_events<P: RoomDataProvider>(
282+
pub(super) async fn replace_with_remote_events<P: RoomDataProvider>(
283283
&mut self,
284284
events: Vec<SyncTimelineEvent>,
285285
position: TimelineEnd,

0 commit comments

Comments
 (0)