We only have missing prev if we don't supply state

This commit is contained in:
Neil Alexander 2022-01-21 16:41:38 +00:00
parent cc2f8a799b
commit 42511199cb
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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