Fix complete sync check

This commit is contained in:
Neil Alexander 2020-10-02 10:18:16 +01:00
parent 92ceb46b49
commit ed84892dc2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -209,7 +209,7 @@ func (rp *RequestPool) currentSyncForUser(req syncRequest, latestPos types.Strea
}
// TODO: handle ignored users
if req.since == nil {
if req.since.PDUPosition() == 0 && req.since.EDUPosition() == 0 {
res, err = rp.db.CompleteSync(req.ctx, res, req.device, req.limit)
if err != nil {
return res, fmt.Errorf("rp.db.CompleteSync: %w", err)