Return "to", if we didn't return any presence events

This commit is contained in:
Till Faelligen 2022-04-29 20:49:01 +02:00
parent 31799a3b2a
commit 52894edb94

View file

@ -145,6 +145,10 @@ func (p *PresenceStreamProvider) IncrementalSync(
p.cache.Store(cacheKey, presence)
}
if len(req.Response.Presence.Events) == 0 {
return to
}
return lastPos
}