Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Ensure rejected events get added to some metadata tables #9016

Merged
merged 9 commits into from
Jan 11, 2021
6 changes: 5 additions & 1 deletion synapse/storage/databases/main/events_bg_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,11 @@ def get_rejected_events(
if has_state and has_event_auth:
continue

room_version_obj = KNOWN_ROOM_VERSIONS[room_version]
room_version_obj = KNOWN_ROOM_VERSIONS.get(room_version)
if not room_version_obj:
# We no longer suppport this room version, so we just ignore the
erikjohnston marked this conversation as resolved.
Show resolved Hide resolved
# events entirely.
continue

event = make_event_from_dict(event_json, room_version_obj)

Expand Down