refactor(timeline): rename Aggregations::apply to Aggregations::apply_all

It applies *all* the stashed aggregations for a given event timeline
item.
This commit is contained in:
Benjamin Bouvier
2025-05-15 15:55:57 +02:00
parent dd6604e9f3
commit 1b581d52e8
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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,