Handle if get_missing_pdu returns 400 or not all events.

This commit is contained in:
Erik Johnston 2015-03-05 16:08:02 +00:00
parent 027fd1242c
commit ae702d161a
2 changed files with 100 additions and 15 deletions

View file

@ -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,