mirror of
https://github.com/element-hq/synapse.git
synced 2026-07-12 05:19:55 +00:00
807795e5ee
To match [the spec requirements for pagination](https://spec.matrix.org/v1.9/appendices/#pagination): * rename the query parameter of `/org.matrix.msc3814.v1/dehydrated_device/[device_id]/events` to `from`, and * omit `next_batch` from the response content if there are no more events to fetch This matches [the changes that are coming in MSC3814](https://github.com/matrix-org/matrix-spec-proposals/pull/3814/files#r1540896531). The previous change https://github.com/element-hq/synapse/pull/19896 kept the old POST API to support old clients. This preserves that compatibility, so the POST API still works how it used to. Depends on https://github.com/element-hq/synapse/pull/19896 Part of https://github.com/element-hq/element-meta/issues/2799 ### Pull Request Checklist * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Quentin Gliech <quenting@element.io>