diff --git a/crates/matrix-sdk-ui/src/timeline/controller/aggregations.rs b/crates/matrix-sdk-ui/src/timeline/controller/aggregations.rs index fb8dc90e6..68361b1d8 100644 --- a/crates/matrix-sdk-ui/src/timeline/controller/aggregations.rs +++ b/crates/matrix-sdk-ui/src/timeline/controller/aggregations.rs @@ -353,7 +353,7 @@ impl Aggregations { /// Will return an error at the first aggregation that couldn't be applied; /// see [`Aggregation::apply`] which explains under which conditions it can /// happen. - pub fn apply( + pub fn apply_all( &self, item_id: &TimelineEventItemId, event: &mut EventTimelineItem, diff --git a/crates/matrix-sdk-ui/src/timeline/event_handler.rs b/crates/matrix-sdk-ui/src/timeline/event_handler.rs index 8de4106b7..8b36ace4f 100644 --- a/crates/matrix-sdk-ui/src/timeline/event_handler.rs +++ b/crates/matrix-sdk-ui/src/timeline/event_handler.rs @@ -1140,7 +1140,7 @@ impl<'a, 'o> TimelineEventHandler<'a, 'o> { ); // Apply any pending or stashed aggregations. - if let Err(err) = self.meta.aggregations.apply( + if let Err(err) = self.meta.aggregations.apply_all( &self.ctx.flow.timeline_item_id(), &mut item, &self.meta.room_version,