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 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 # 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 # room. This is so that we can mark those device lists as
# potentially stale, since there may have been a period where the # potentially stale, since there may have been a period where the