diff --git a/src/service/rooms/timeline/append.rs b/src/service/rooms/timeline/append.rs index 35b3771d1..5bc7d8f87 100644 --- a/src/service/rooms/timeline/append.rs +++ b/src/service/rooms/timeline/append.rs @@ -5,7 +5,7 @@ use std::{ sync::Arc, time::Instant, }; - +use std::ops::Not; use conduwuit::{ Err, Result, debug, debug_warn, matrix::{Event, PduEvent}, @@ -190,6 +190,7 @@ impl super::Service { .pdu_metadata .is_event_referenced(&incoming_pdu.room_id_or_hash(), &extremity) .await + .not() .then_some(extremity) }) .collect()