mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-16 15:00:42 +02:00
Improve "Receipts" module of CS API (#2376)
Some checks failed
Spec / 🔎 Validate OpenAPI specifications (push) Has been cancelled
Spec / 🔎 Check Event schema examples (push) Has been cancelled
Spec / 🔎 Check OpenAPI definitions examples (push) Has been cancelled
Spec / 🔎 Check JSON Schemas inline examples (push) Has been cancelled
Spec / ⚙️ Calculate baseURL for later jobs (push) Has been cancelled
Spec / 📢 Run towncrier for changelog (push) Has been cancelled
Spell Check / Spell Check with Typos (push) Has been cancelled
Spec / 🐍 Build OpenAPI definitions (push) Has been cancelled
Spec / 📖 Build the spec (push) Has been cancelled
Spec / 🔎 Validate generated HTML (push) Has been cancelled
Spec / 📖 Build the historical backup spec (push) Has been cancelled
Spec / Create release (push) Has been cancelled
Some checks failed
Spec / 🔎 Validate OpenAPI specifications (push) Has been cancelled
Spec / 🔎 Check Event schema examples (push) Has been cancelled
Spec / 🔎 Check OpenAPI definitions examples (push) Has been cancelled
Spec / 🔎 Check JSON Schemas inline examples (push) Has been cancelled
Spec / ⚙️ Calculate baseURL for later jobs (push) Has been cancelled
Spec / 📢 Run towncrier for changelog (push) Has been cancelled
Spell Check / Spell Check with Typos (push) Has been cancelled
Spec / 🐍 Build OpenAPI definitions (push) Has been cancelled
Spec / 📖 Build the spec (push) Has been cancelled
Spec / 🔎 Validate generated HTML (push) Has been cancelled
Spec / 📖 Build the historical backup spec (push) Has been cancelled
Spec / Create release (push) Has been cancelled
* Add links to definitions and clarify string formats of Receipts section Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> * Add changelog Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> --------- Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
1449321ea1
commit
656bf61a3c
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify formats of string types.
|
||||||
|
|
@ -90,11 +90,11 @@ room that the event was sent to or dismissing a notification in order
|
||||||
for the event to count as "read". Clients SHOULD NOT send read receipts
|
for the event to count as "read". Clients SHOULD NOT send read receipts
|
||||||
for events sent by their own user.
|
for events sent by their own user.
|
||||||
|
|
||||||
Similar to the rules for sending receipts, threaded receipts should appear
|
Similar to the rules for sending receipts, [threaded receipts](#threaded-read-receipts)
|
||||||
in the context of the thread. If a thread is rendered behind a disclosure,
|
should appear in the context of the thread. If a thread is rendered behind a
|
||||||
the client hasn't yet shown the event (or any applicable read receipts)
|
disclosure, the client hasn't yet shown the event (or any applicable read
|
||||||
to the user. Once they expand the thread though, a threaded read receipt
|
receipts) to the user. Once they expand the thread though, a threaded read
|
||||||
would be sent and per-thread receipts from other users shown.
|
receipt would be sent and per-thread receipts from other users shown.
|
||||||
|
|
||||||
A client can update the markers for its user by interacting with the
|
A client can update the markers for its user by interacting with the
|
||||||
following HTTP APIs.
|
following HTTP APIs.
|
||||||
|
|
@ -232,5 +232,5 @@ MUST NOT appear in this federated `m.receipt` EDU.
|
||||||
|
|
||||||
#### Security considerations
|
#### Security considerations
|
||||||
|
|
||||||
As receipts are sent outside the context of the event graph, there are
|
As receipts are sent outside the context of the [event graph](/#event-graphs),
|
||||||
no integrity checks performed on the contents of `m.receipt` events.
|
there are no integrity checks performed on the contents of `m.receipt` events.
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,8 @@ paths:
|
||||||
example: "!wefuh21ffskfuh345:example.com"
|
example: "!wefuh21ffskfuh345:example.com"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-room-id
|
||||||
|
pattern: "^!"
|
||||||
- in: path
|
- in: path
|
||||||
name: receiptType
|
name: receiptType
|
||||||
description: |-
|
description: |-
|
||||||
|
|
@ -62,6 +64,8 @@ paths:
|
||||||
example: $1924376522eioj:example.com
|
example: $1924376522eioj:example.com
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-event-id
|
||||||
|
pattern: "^\\$"
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|
@ -72,7 +76,8 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
x-addedInMatrixVersion: "1.4"
|
x-addedInMatrixVersion: "1.4"
|
||||||
description: |-
|
description: |-
|
||||||
The root thread event's ID (or `main`) for which
|
The [thread root](/client-server-api/#threading)'s
|
||||||
|
[event ID](/appendices#event-ids) (or `main`) for which
|
||||||
thread this receipt is intended to be under. If
|
thread this receipt is intended to be under. If
|
||||||
not specified, the read receipt is *unthreaded*
|
not specified, the read receipt is *unthreaded*
|
||||||
(default).
|
(default).
|
||||||
|
|
|
||||||
|
|
@ -46,10 +46,10 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
x-addedInMatrixVersion: "1.4"
|
x-addedInMatrixVersion: "1.4"
|
||||||
description: |-
|
description: |-
|
||||||
The root thread event's ID (or `main`) for which
|
The [thread root](/client-server-api/#threading)'s
|
||||||
thread this receipt is intended to be under. If
|
[event ID](/appendices#event-ids) (or `main`) for which
|
||||||
not specified, the read receipt is *unthreaded*
|
thread this receipt is intended to be under. If not
|
||||||
(default).
|
specified, the read receipt is *unthreaded* (default).
|
||||||
"m.read.private":
|
"m.read.private":
|
||||||
type: object
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue