mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Don't return early if there are no events
This commit is contained in:
parent
5bb2f334b0
commit
c48a7aad58
|
|
@ -208,9 +208,6 @@ func (p *PDUStreamProvider) IncrementalSync(
|
|||
req.Log.WithError(err).Error("unable to get recent events")
|
||||
return r.From
|
||||
}
|
||||
if len(dbEvents) == 0 {
|
||||
return r.To
|
||||
}
|
||||
|
||||
newPos = from
|
||||
for _, delta := range stateDeltas {
|
||||
|
|
|
|||
Loading…
Reference in a new issue