Fix exceptions when attempting to backfill (#6576)
* commit '03d3792f3': Fix exceptions when attempting to backfill (#6576)
This commit is contained in:
1
changelog.d/6576.bugfix
Normal file
1
changelog.d/6576.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Fix errors when attempting to backfill rooms over federation.
|
||||
@@ -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)
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user