Only search for missing prev events or state for new events

This commit is contained in:
Neil Alexander 2022-01-21 15:18:51 +00:00
parent 7a93bb32e7
commit ae3c4f3c56
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

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