mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-03 12:13:09 -06:00
Get 1000 presence events, they are filtered later
This commit is contained in:
parent
94acd611b9
commit
68575526ac
|
|
@ -53,7 +53,8 @@ func (p *PresenceStreamProvider) IncrementalSync(
|
||||||
req *types.SyncRequest,
|
req *types.SyncRequest,
|
||||||
from, to types.StreamPosition,
|
from, to types.StreamPosition,
|
||||||
) types.StreamPosition {
|
) types.StreamPosition {
|
||||||
presences, err := p.DB.PresenceAfter(ctx, from, req.Filter.Presence)
|
// We pull out a larger number than the filter asks for, since we're filtering out events later
|
||||||
|
presences, err := p.DB.PresenceAfter(ctx, from, gomatrixserverlib.EventFilter{Limit: 1000})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
req.Log.WithError(err).Error("p.DB.PresenceAfter failed")
|
req.Log.WithError(err).Error("p.DB.PresenceAfter failed")
|
||||||
return from
|
return from
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue