diff --git a/changelog.d/6810.misc b/changelog.d/6810.misc new file mode 100644 index 000000000000..5537355bea8e --- /dev/null +++ b/changelog.d/6810.misc @@ -0,0 +1 @@ +Record room versions in the `rooms` table. diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 76c34bf84008..5338e4a0f1de 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1940,7 +1940,11 @@ def _persist_auth_tree( for e_id in missing_auth_events: m_ev = yield self.federation_client.get_pdu( - [origin], e_id, room_version=room_version, outlier=True, timeout=10000 + [origin], + e_id, + room_version=room_version.identifier, + outlier=True, + timeout=10000, ) if m_ev and m_ev.event_id == e_id: event_map[e_id] = m_ev