mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 01:44:57 -04:00
Fix logic for dropping old events in fed queue (#11806)
Co-authored-by: Brendan Abolivier <babolivier@matrix.org> Co-authored-by: Richard van der Hoff <richard@matrix.org>
This commit is contained in:
parent
2d295a4be9
commit
dc671d3ea7
3 changed files with 29 additions and 7 deletions
|
@ -1432,7 +1432,10 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas
|
|||
|
||||
if room_version.event_format == EventFormatVersions.V1:
|
||||
for prev_event_tuple in prev_events:
|
||||
if not isinstance(prev_event_tuple, list) or len(prev_events) != 2:
|
||||
if (
|
||||
not isinstance(prev_event_tuple, list)
|
||||
or len(prev_event_tuple) != 2
|
||||
):
|
||||
logger.info("Invalid prev_events for %s", event_id)
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue