mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
We only have missing prev if we don't supply state
This commit is contained in:
parent
cc2f8a799b
commit
42511199cb
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
if missingPrev && input.Kind == api.KindNew {
|
||||||
// Don't do this for KindOld events, otherwise old events that we fetch
|
// Don't do this for KindOld events, otherwise old events that we fetch
|
||||||
// to satisfy missing prev events/state will end up recursively calling
|
// to satisfy missing prev events/state will end up recursively calling
|
||||||
|
|
Loading…
Reference in a new issue