Skip to content

Commit

Permalink
Merge pull request #390 from matrix-org/erikj/filter_url
Browse files Browse the repository at this point in the history
Add contains_url filter option and /messages filter
  • Loading branch information
richvdh authored Oct 3, 2016
2 parents 91e8993 + 069aa86 commit 2dde1a8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/client-server/definitions/room_event_filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ properties:
items:
type: string
type: array
contains_url:
type: boolean
description: If ``true``, includes only events with a url key in their content. If
``false``, excludes those events.
type: object
7 changes: 7 additions & 0 deletions api/client-server/message_pagination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ paths:
description: |-
The maximum number of events to return. Default: 10.
x-example: "3"
- in: query
type: string
name: filter
description: |-
A JSON RoomEventFilter to filter returned events with.
x-example: |-
{"contains_url":true}
responses:
200:
description: A list of messages with a new token to request more.
Expand Down
4 changes: 4 additions & 0 deletions changelogs/client_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
- Add top-level ``account_data`` key to the responses to ``GET /sync`` and
``GET /initialSync``
(`#380 <https://github.com/matrix-org/matrix-doc/pull/380>`_).
- Add ``contains_url`` option to ``RoomEventFilter``.
(`#390 <https://github.com/matrix-org/matrix-doc/pull/390>`_).
- Add ``filter`` optional query param to ``/messages``
(`#390 <https://github.com/matrix-org/matrix-doc/pull/390>`_).

r0.2.0
======
Expand Down

0 comments on commit 2dde1a8

Please sign in to comment.