mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-21 08:58:38 +01:00
Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7935a0728a | ||
|
|
23105625b1 |
|
|
@ -0,0 +1 @@
|
||||||
|
Add `thread_id` to the `/receipt` endpoint, as per [MSC3771](https://github.com/matrix-org/matrix-spec-proposals/pull/3771)
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Fix various typos throughout the specification.
|
||||||
|
|
@ -1988,11 +1988,6 @@ of times that `key` was used by child events.
|
||||||
|
|
||||||
The actual aggregation format depends on the `rel_type`.
|
The actual aggregation format depends on the `rel_type`.
|
||||||
|
|
||||||
{{% boxes/note %}}
|
|
||||||
This specification does not currently describe any `rel_type`s which require
|
|
||||||
aggregation. This functionality forms a framework for future extensions.
|
|
||||||
{{% /boxes/note %}}
|
|
||||||
|
|
||||||
Aggregations are sometimes automatically included by a server alongside the parent
|
Aggregations are sometimes automatically included by a server alongside the parent
|
||||||
event. This is known as a "bundled aggregation" or "bundle" for simplicity. The
|
event. This is known as a "bundled aggregation" or "bundle" for simplicity. The
|
||||||
act of doing this is "bundling".
|
act of doing this is "bundling".
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,18 @@ paths:
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
|
properties:
|
||||||
|
thread_id:
|
||||||
|
type: string
|
||||||
|
x-addedInMatrixVersion: "1.4"
|
||||||
|
description: |-
|
||||||
|
The root thread event's ID (or `main`) for which
|
||||||
|
thread this receipt is intended to be under. If
|
||||||
|
not specified, the read receipt is *unthreaded*
|
||||||
|
(default).
|
||||||
example: {
|
example: {
|
||||||
}
|
"thread_id": "main"
|
||||||
|
}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The receipt was sent.
|
description: The receipt was sent.
|
||||||
|
|
@ -88,5 +98,19 @@ paths:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/errors/rate_limited.yaml"
|
"$ref": "definitions/errors/rate_limited.yaml"
|
||||||
|
400:
|
||||||
|
description: |-
|
||||||
|
The `thread_id` is invalid in some way. For example:
|
||||||
|
* It is not a string.
|
||||||
|
* It is empty.
|
||||||
|
* It is provided for an incompatible receipt type.
|
||||||
|
* The `event_id` is not related to the `thread_id`.
|
||||||
|
schema:
|
||||||
|
$ref: "definitions/errors/error.yaml"
|
||||||
|
examples:
|
||||||
|
application/json: {
|
||||||
|
"errcode": "M_INVALID_PARAM",
|
||||||
|
"error": "thread_id field must be a non-empty string"
|
||||||
|
}
|
||||||
tags:
|
tags:
|
||||||
- Room participation
|
- Room participation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue