1
0

Fix exceptions when attempting to backfill (#6576)

* commit '03d3792f3':
  Fix exceptions when attempting to backfill (#6576)
This commit is contained in:
Andrew Morgan
2020-03-20 14:55:31 +00:00
3 changed files with 6 additions and 2 deletions

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

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

View File

@@ -106,7 +106,7 @@ class DeactivateAccountHandler(BaseHandler):
await self.store.user_set_password_hash(user_id, None)
user = UserID.from_string(user_id)
yield self._profile_handler.set_active(user, False, False)
await self._profile_handler.set_active(user, False, False)
# Add the user to a table of users pending deactivation (ie.
# removal from all the rooms they're a member of)

View File

@@ -789,7 +789,10 @@ class FederationHandler(BaseHandler):
events_to_state = {}
for e_id in edges:
state, auth = await 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})