Skip to content
Snippets Groups Projects
Unverified Commit f58d202e authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Fix bug with reusing 'txn' when persisting event. (#10743)

This will only happen when a server has multiple out of band membership
events in a single room.
parent 00640ee7
No related branches found
No related tags found
No related merge requests found
Fix edge case when persisting events into a room where there are multiple events we previously hadn't calculated auth chains for (and hadn't marked as needing to be calculated).
...@@ -575,7 +575,13 @@ class PersistEventsStore: ...@@ -575,7 +575,13 @@ class PersistEventsStore:
missing_auth_chains.clear() missing_auth_chains.clear()
for auth_id, event_type, state_key, chain_id, sequence_number in txn: for (
auth_id,
event_type,
state_key,
chain_id,
sequence_number,
) in txn.fetchall():
event_to_types[auth_id] = (event_type, state_key) event_to_types[auth_id] = (event_type, state_key)
if chain_id is None: if chain_id is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment