From 42511199cb02a1c0d3cf28d9bd61c756ecc559c1 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 21 Jan 2022 16:41:38 +0000 Subject: [PATCH] We only have missing prev if we don't supply state --- 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 17c421ed4..016185c3c 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -166,7 +166,7 @@ func (r *Inputer) processRoomEvent( } } - missingPrev := len(missingRes.MissingPrevEventIDs) > 0 + missingPrev := !input.HasState && len(missingRes.MissingPrevEventIDs) > 0 if missingPrev && input.Kind == api.KindNew { // Don't do this for KindOld events, otherwise old events that we fetch // to satisfy missing prev events/state will end up recursively calling