Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Configurable maximum number of events requested by /sync and /messages #2221

Merged

Commits on May 13, 2017

  1. Configurable maximum number of events requested by /sync and /messages (

    matrix-org#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.
    psaavedra committed May 13, 2017
    Configuration menu
    Copy the full SHA
    9da4316 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2017

  1. Fixed implementation errors

    * Added HS as property in SyncRestServlet
    * Fixed set_timeline_upper_limit function implementat¡ion
    psaavedra committed May 15, 2017
    Configuration menu
    Copy the full SHA
    627e6ea View commit details
    Browse the repository at this point in the history
  2. Fixed syntax nits

    psaavedra committed May 15, 2017
    Configuration menu
    Copy the full SHA
    224137f View commit details
    Browse the repository at this point in the history