From 5ced4f38a8fc97f5b9e2c3a902c0130f3d1fed84 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 22:56:14 +0100 Subject: [PATCH] B2 fix-up: the own-line filter takes a line whatever the iterator's reference depth Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/projection/select.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/mind-body/src/projection/select.rs b/crates/mind-body/src/projection/select.rs index cfe1b04..24a8445 100644 --- a/crates/mind-body/src/projection/select.rs +++ b/crates/mind-body/src/projection/select.rs @@ -1958,10 +1958,10 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet { let her = forms(inputs.state); let mut context = Context::new(guards(tuning, her), her); // Her own posted lines are never what she was sent: the quote guard and the echo check compare against others' words only. - let others = |line: &&RoomLine| line.sender != inputs.people.own_sender; + let others = |line: &RoomLine| line.sender != inputs.people.own_sender; let bodies: Vec = match inputs.kind { - TurnKind::Chat => inputs.room.messages.iter().chain(earlier_shown.iter().copied()).filter(others).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), - TurnKind::Beat => beat_tail(inputs, tuning).iter().filter(others).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), + TurnKind::Chat => inputs.room.messages.iter().chain(earlier_shown.iter().copied()).filter(|line| others(line)).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), + TurnKind::Beat => beat_tail(inputs, tuning).iter().filter(|line| others(line)).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(), TurnKind::FollowUp | TurnKind::Reflection => Vec::new(), }; // What she may reply to (map 16.20.8 (D), K20): the lines of others in the turn's room whose words this packet shows