Fix exceptions when attempting to backfill (#6576)

Fixes #6575
pull/6578/head
Richard van der Hoff 2019-12-20 09:55:45 +00:00 committed by GitHub
parent e156c86a7f
commit 03d3792f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

1
changelog.d/6576.bugfix Normal file
View File

@ -0,0 +1 @@
Fix errors when attempting to backfill rooms over federation.

View File

@ -797,7 +797,10 @@ class FederationHandler(BaseHandler):
events_to_state = {}
for e_id in edges:
state, auth = yield self._get_state_for_room(
destination=dest, room_id=room_id, event_id=e_id
destination=dest,
room_id=room_id,
event_id=e_id,
include_event_in_state=False,
)
auth_events.update({a.event_id: a for a in auth})
auth_events.update({s.event_id: s for s in state})