fix: Don't include latest_events in output

This commit is contained in:
timedout 2026-02-12 17:37:29 +00:00
parent 69a8937584
commit 7d84ba5ff2
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -96,6 +96,10 @@ pub(crate) async fn get_missing_events_route(
);
queue.extend(pdu.prev_events.clone());
seen.insert(next_event_id.clone());
if body.latest_events.contains(&next_event_id) {
continue; // Don't include latest_events in results,
// but do include their prev_events in the queue
}
results.push(
services
.sending