Create some calm

This commit is contained in:
Neil Alexander 2022-03-25 11:49:40 +00:00
parent 9ada4a5e98
commit e28760907d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -178,7 +178,10 @@ func (p *PDUStreamProvider) IncrementalSync(
req.Log.WithError(err).Error("d.addRoomDeltaToResponse failed")
return to
}
if pos > newPos {
switch {
case r.Backwards && pos < newPos:
fallthrough
case !r.Backwards && pos > newPos:
newPos = pos
}
}