mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Handle if get_missing_pdu returns 400 or not all events.
This commit is contained in:
parent
027fd1242c
commit
ae702d161a
2 changed files with 100 additions and 15 deletions
|
@ -413,12 +413,14 @@ class FederationServer(FederationBase):
|
|||
missing_events = yield self.get_missing_events(
|
||||
origin,
|
||||
pdu.room_id,
|
||||
earliest_events=list(latest),
|
||||
latest_events=[pdu.event_id],
|
||||
earliest_events_ids=list(latest),
|
||||
latest_events=[pdu],
|
||||
limit=10,
|
||||
min_depth=min_depth,
|
||||
)
|
||||
|
||||
missing_events.sort(key=lambda x: x.depth)
|
||||
|
||||
for e in missing_events:
|
||||
yield self._handle_new_pdu(
|
||||
origin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue