mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 21:36:03 -04:00
Don't drop user dir deltas when server leaves room (#10982)
Fix a long-standing bug where a batch of user directory changes would be silently dropped if the server left a room early in the batch. * Pull out `wait_for_background_update` in tests Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
38b7db5885
commit
370bca32e6
11 changed files with 63 additions and 79 deletions
|
@ -220,7 +220,7 @@ class UserDirectoryHandler(StateDeltasHandler):
|
|||
|
||||
for user_id in user_ids:
|
||||
await self._handle_remove_user(room_id, user_id)
|
||||
return
|
||||
continue
|
||||
else:
|
||||
logger.debug("Server is still in room: %r", room_id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue