fix: Only count non-outlier prev_events in get_missing_events assertion

This commit is contained in:
Erwan Leboucher authored and Ellis Git committed 2026-09-13 18:50:38 +00:00
1 parent 9bb203abe8
commit ac8b17db1b
1 file changed
+6 -1
@@ -155,7 +155,12 @@ impl super::Service {
.prev_events()
.stream()
.fold(0_u8, |i, event_id| async move {
if self.services.timeline.pdu_exists(event_id).await {
if self
.services
.timeline
.non_outlier_pdu_exists(event_id)
.await
{
i
} else {
i.expected_add(1)