Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix exceptions when attempting to backfill (#6576)
Browse files Browse the repository at this point in the history
* commit '03d3792f3':
  Fix exceptions when attempting to backfill (#6576)
  • Loading branch information
anoadragon453 committed Mar 20, 2020
2 parents 8468c90 + 03d3792 commit bcbc56f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/6576.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix errors when attempting to backfill rooms over federation.
2 changes: 1 addition & 1 deletion synapse/handlers/deactivate_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def deactivate_account(self, user_id, erase_data, id_server=None):
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)
Expand Down
5 changes: 4 additions & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,10 @@ async def backfill(self, dest, room_id, limit, extremities):
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})
Expand Down

0 comments on commit bcbc56f

Please sign in to comment.