From a5a541ec985fa8d182bf087e6bdf54d2bfdde8ab Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 21 Aug 2023 13:19:57 +0200 Subject: [PATCH] ui: Improve comment in redaction code (move it to a more logical place) --- crates/matrix-sdk-ui/src/timeline/event_handler.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk-ui/src/timeline/event_handler.rs b/crates/matrix-sdk-ui/src/timeline/event_handler.rs index d9e839e30..d8c8d020e 100644 --- a/crates/matrix-sdk-ui/src/timeline/event_handler.rs +++ b/crates/matrix-sdk-ui/src/timeline/event_handler.rs @@ -555,11 +555,13 @@ impl<'a> TimelineEventHandler<'a> { warn!("reaction_map out of sync with timeline items"); } } + + // Even if the event being redacted is a reaction (found in + // `reaction_map`), it can still be present in the timeline items + // directly with the raw event timeline feature (not yet + // implemented) => no early return here. } - // Even if the event being redacted is a reaction (found in - // `reaction_map`), it can still be present in the timeline items - // directly with the raw event timeline feature (not yet implemented). update_timeline_item!(self, &redacts, "redaction", |event_item| { if event_item.as_remote().is_none() { error!("inconsistent state: redaction received on a non-remote event item");