mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Limit sync properly
This commit is contained in:
parent
4a0461378a
commit
284c129c2f
|
|
@ -515,6 +515,7 @@ func (d *Database) addPDUDeltaToResponse(
|
|||
defer sqlutil.EndTransactionWithCheck(txn, &succeeded, &err)
|
||||
|
||||
stateFilter := gomatrixserverlib.DefaultStateFilter() // TODO: use filter provided in request
|
||||
stateFilter.Limit = numRecentEventsPerRoom
|
||||
|
||||
// Work out which rooms to return in the response. This is done by getting not only the currently
|
||||
// joined rooms, but also which rooms have membership transitions for this user between the 2 PDU stream positions.
|
||||
|
|
|
|||
Loading…
Reference in a new issue