summary refs log tree commit diff
path: root/README.rst
diff options
context:
space:
mode:
authorPablo Saavedra <psaavedra@igalia.com>2017-05-13 18:17:54 +0200
committerPablo Saavedra <psaavedra@igalia.com>2017-05-13 18:17:54 +0200
commit9da4316ca574f2d552136941d92ce722fabfe29e (patch)
treeda47f6200995f07c8651cd1413cefb920b679674 /README.rst
parentMerge pull request #2214 from matrix-org/rav/hurry_up_purge (diff)
downloadsynapse-9da4316ca574f2d552136941d92ce722fabfe29e.tar.xz
Configurable maximum number of events requested by /sync and /messages (#2220)
Set the limit on the returned events in the timeline in the get and sync
operations. The default value is -1, means no upper limit.

For example, using `filter_timeline_limit: 5000`:

POST /_matrix/client/r0/user/user:id/filter
{
room: {
    timeline: {
      limit: 1000000000000000000
    }
}
}

GET /_matrix/client/r0/user/user:id/filter/filter:id

{
room: {
    timeline: {
      limit: 5000
    }
}
}

The server cuts down the room.timeline.limit.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions