mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-12 10:00:50 -04:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user