From 55ef667e96551ad67dbbb3e3e292d5877686453b Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 25 Jan 2022 17:42:58 -0600 Subject: Add extra potential check --- synapse/handlers/room_batch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synapse/handlers/room_batch.py b/synapse/handlers/room_batch.py index 89dbbb0c89..361f3015ce 100644 --- a/synapse/handlers/room_batch.py +++ b/synapse/handlers/room_batch.py @@ -381,6 +381,8 @@ class RoomBatchHandler: # TODO: Can we get away without this? Can't we just rely on validate_new below? # self.validator.validate_builder(builder) + # TODO: Do we need to sanity check the number of prev_events? + resultant_auth_event_ids = ( event_sender_and_type_to_auth_event_ids_cache.get( (ev["sender"], ev["type"]) -- cgit 1.4.1