mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
fix: Don't only include referenced extremities
This commit is contained in:
1 file changed
+2
-1
@@ -5,7 +5,7 @@ use std::{
|
|||||||
sync::Arc,
|
sync::Arc,
|
||||||
time::Instant,
|
time::Instant,
|
||||||
};
|
};
|
||||||
|
use std::ops::Not;
|
||||||
use conduwuit::{
|
use conduwuit::{
|
||||||
Err, Result, debug, debug_warn,
|
Err, Result, debug, debug_warn,
|
||||||
matrix::{Event, PduEvent},
|
matrix::{Event, PduEvent},
|
||||||
@@ -190,6 +190,7 @@ impl super::Service {
|
|||||||
.pdu_metadata
|
.pdu_metadata
|
||||||
.is_event_referenced(&incoming_pdu.room_id_or_hash(), &extremity)
|
.is_event_referenced(&incoming_pdu.room_id_or_hash(), &extremity)
|
||||||
.await
|
.await
|
||||||
|
.not()
|
||||||
.then_some(extremity)
|
.then_some(extremity)
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
|
|||||||
Reference in new issue
Block a user