From 46ac01670954e5371bb6002099b06df7c483d388 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 29 Jun 2021 17:44:55 +0100 Subject: [PATCH] Don't dupe missing auth events --- federationapi/routing/send.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 518b4bc2..9dee0304 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -596,6 +596,8 @@ withNextEvent: ); err != nil { return fmt.Errorf("api.SendEvents: %w", err) } + t.hadEvents[ev.EventID()] = true // if the roomserver didn't know about the event before, it does now + t.cacheAndReturn(ev.Headered(stateResp.RoomVersion)) delete(missingAuthEvents, missingAuthEventID) continue withNextEvent }