From ae3c4f3c568e1fc44635a67a29b47d121d173fe3 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 21 Jan 2022 15:18:51 +0000 Subject: [PATCH] Only search for missing prev events or state for new events --- roomserver/internal/input/input_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index 521ba6d1..a7e06c85 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -167,7 +167,7 @@ func (r *Inputer) processRoomEvent( } missingPrev := len(missingRes.MissingPrevEventIDs) > 0 - if missingPrev && input.Kind != api.KindOutlier { + if missingPrev && input.Kind == api.KindNew { if len(serverRes.ServerNames) > 0 { missingState := missingStateReq{ origin: input.Origin,