mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 08:43:49 +01:00
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.
This commit is contained in:
parent
00640ee71a
commit
f58d202e3f
2 changed files with 8 additions and 1 deletions
1
changelog.d/10743.bugfix
Normal file
1
changelog.d/10743.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
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:
|
|||
|
||||
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)
|
||||
|
||||
if chain_id is None:
|
||||
|
|
Loading…
Reference in a new issue