fix: Don't include latest_events in output
This commit is contained in:
parent
69a8937584
commit
7d84ba5ff2
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue