Fix rendering of m.receipt
event in Client-Server API (#1637)
... and other improvements Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
5672bdbab7
commit
e40d9ca186
12 changed files with 184 additions and 69 deletions
|
@ -11,10 +11,12 @@ properties:
|
|||
content:
|
||||
additionalProperties:
|
||||
type: array
|
||||
title: User ID
|
||||
items:
|
||||
type: string
|
||||
type: object
|
||||
description: |-
|
||||
The mapping of user ID to a list of room IDs of the 'direct' rooms for
|
||||
that user ID.
|
||||
type:
|
||||
enum:
|
||||
- m.direct
|
||||
|
|
|
@ -10,12 +10,12 @@ properties:
|
|||
properties:
|
||||
ignored_users:
|
||||
type: object
|
||||
title: "Ignored users"
|
||||
description: "The map of users to ignore"
|
||||
description: |-
|
||||
The map of users to ignore. This is a mapping of user ID to empty
|
||||
object.
|
||||
patternProperties:
|
||||
"^@":
|
||||
type: "object"
|
||||
title: "Ignored User"
|
||||
description: "An empty object for future enhancement"
|
||||
x-pattern: "$USER_ID"
|
||||
required:
|
||||
|
|
|
@ -9,22 +9,24 @@ allOf:
|
|||
properties:
|
||||
content:
|
||||
type: object
|
||||
description: |-
|
||||
The mapping of event ID to a collection of receipts for this
|
||||
event ID. The event ID is the ID of the event being acknowledged
|
||||
and *not* an ID for the receipt itself.
|
||||
patternProperties:
|
||||
"^\\$":
|
||||
type: object
|
||||
x-pattern: "$EVENT_ID"
|
||||
title: Receipts
|
||||
title: Event Receipts
|
||||
description: |-
|
||||
The mapping of event ID to a collection of receipts for this
|
||||
event ID. The event ID is the ID of the event being acknowledged
|
||||
and *not* an ID for the receipt itself.
|
||||
The collection of receipts for this event ID.
|
||||
properties:
|
||||
"m.read":
|
||||
type: object
|
||||
title: Users
|
||||
description: |-
|
||||
A collection of users who have sent `m.read` receipts for
|
||||
this event.
|
||||
this event. The string key is the user ID the receipt
|
||||
belongs to.
|
||||
patternProperties:
|
||||
"^@": &receiptUserMap
|
||||
type: object
|
||||
|
@ -48,7 +50,6 @@ properties:
|
|||
(default).
|
||||
"m.read.private":
|
||||
type: object
|
||||
title: Own User
|
||||
description: |-
|
||||
Similar to `m.read`, the users who have sent `m.read.private`
|
||||
receipts for this event. Due to the nature of private read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue