Clean-up events persistance code (#14411)

By removing unused variables and making some arguments
required which are always provided.
This commit is contained in:
Patrick Cloke 2022-11-14 08:13:11 -05:00 committed by GitHub
parent 95f7a65a56
commit fb66fae84b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View file

@ -716,8 +716,6 @@ class EventsPersistenceStorageController:
)
if not is_still_joined:
logger.info("Server no longer in room %s", room_id)
latest_event_ids = set()
current_state = {}
delta.no_longer_in_room = True
state_delta_for_room[room_id] = delta