mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Fetch missing state for KindOld too
This commit is contained in:
parent
f8d763a5ad
commit
36834b38f8
|
|
@ -221,7 +221,7 @@ func (r *Inputer) processRoomEvent(
|
||||||
// typical federated room join) then we won't bother trying to fetch prev events
|
// typical federated room join) then we won't bother trying to fetch prev events
|
||||||
// because we may not be allowed to see them and we have no choice but to trust
|
// because we may not be allowed to see them and we have no choice but to trust
|
||||||
// the state event IDs provided to us in the join instead.
|
// the state event IDs provided to us in the join instead.
|
||||||
if missingPrev && input.Kind == api.KindNew {
|
if !input.HasState && missingPrev {
|
||||||
// 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
|
||||||
// processRoomEvent.
|
// processRoomEvent.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue