mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Default to 10 state events
This commit is contained in:
parent
cbb1654cc4
commit
7d556decde
|
|
@ -109,7 +109,8 @@ func Context(
|
|||
}
|
||||
}
|
||||
|
||||
stateFilter := synctypes.StateFilter{
|
||||
stateFilter := synctypes.DefaultStateFilter()
|
||||
stateFilter = synctypes.StateFilter{
|
||||
NotSenders: filter.NotSenders,
|
||||
NotTypes: filter.NotTypes,
|
||||
Senders: filter.Senders,
|
||||
|
|
|
|||
|
|
@ -1136,7 +1136,7 @@ func testContext(t *testing.T, dbType test.DBType) {
|
|||
},
|
||||
{
|
||||
name: "events are not limited",
|
||||
wantBeforeLength: 7,
|
||||
wantBeforeLength: 5,
|
||||
},
|
||||
{
|
||||
name: "all events are limited",
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ func DefaultEventFilter() EventFilter {
|
|||
// is provided in the request
|
||||
func DefaultStateFilter() StateFilter {
|
||||
return StateFilter{
|
||||
Limit: 10,
|
||||
NotSenders: nil,
|
||||
NotTypes: nil,
|
||||
Senders: nil,
|
||||
|
|
|
|||
Loading…
Reference in a new issue