Log when we delete room in bg update (#6816)

This commit is contained in:
Erik Johnston 2020-01-30 17:55:34 +00:00 committed by GitHub
parent 184303b865
commit e0992fcc5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

1
changelog.d/6816.misc Normal file
View File

@ -0,0 +1 @@
Add background update to clean out left rooms from current state.

View File

@ -365,6 +365,8 @@ class MainStateBackgroundUpdateStore(RoomMemberWorkerStore):
left_rooms = set(room_ids) - joined_room_ids
logger.info("Deleting current state left rooms: %r", left_rooms)
# First we get all users that we still think were joined to the
# room. This is so that we can mark those device lists as
# potentially stale, since there may have been a period where the