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

Commit

Permalink
Fix room_version in _persist_auth_tree
Browse files Browse the repository at this point in the history
Fixes a confusion about whether room_version is a string or an object.

This was introduced in #6729 and half-fixed in #6788.
  • Loading branch information
richvdh committed Jan 31, 2020
1 parent 46a4468 commit 54437f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6818.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Record room versions in the `rooms` table.
6 changes: 5 additions & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,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
Expand Down

0 comments on commit 54437f6

Please sign in to comment.