diff --git a/crates/matrix-sdk-ui/src/timeline/inner/mod.rs b/crates/matrix-sdk-ui/src/timeline/inner/mod.rs index a4b4cb96ef6..9cfa7b00f4b 100644 --- a/crates/matrix-sdk-ui/src/timeline/inner/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/inner/mod.rs @@ -425,8 +425,7 @@ impl TimelineInner

{ let user_id = self.room_data_provider.own_user_id(); let related_event = { - let items = state.items.clone(); - let Some((_, item)) = rfind_event_by_id(&items, &annotation.event_id) else { + let Some((_, item)) = rfind_event_by_id(&state.items, &annotation.event_id) else { warn!("Timeline item not found, can't update reaction ID"); return Err(Error::FailedToToggleReaction); };