Fix bug with getting missing auth event during join 500'ed (#6810)

This commit is contained in:
Erik Johnston 2020-01-31 09:49:13 +00:00 committed by GitHub
parent 46a446828d
commit 7d846e8704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

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

@ -0,0 +1 @@
Record room versions in the `rooms` table.

View File

@ -1929,7 +1929,11 @@ class FederationHandler(BaseHandler):
for e_id in missing_auth_events: for e_id in missing_auth_events:
m_ev = yield self.federation_client.get_pdu( 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: if m_ev and m_ev.event_id == e_id:
event_map[e_id] = m_ev event_map[e_id] = m_ev