|
|
@ -41,41 +41,45 @@ allOf:
|
|
|
|
# on. At that point, m.read can become optional (maybe).
|
|
|
|
# on. At that point, m.read can become optional (maybe).
|
|
|
|
"m.read":
|
|
|
|
"m.read":
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
description: Read receipts for users in the room.
|
|
|
|
description: |-
|
|
|
|
title: User Read Receipt
|
|
|
|
Read receipts for users in the room. The string key is the user
|
|
|
|
properties:
|
|
|
|
ID the receipt belongs to.
|
|
|
|
event_ids:
|
|
|
|
additionalProperties:
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
description: |-
|
|
|
|
title: User Read Receipt
|
|
|
|
The extremity event IDs that the user has read up to.
|
|
|
|
properties:
|
|
|
|
minItems: 1
|
|
|
|
event_ids:
|
|
|
|
maxItems: 1
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
description: |-
|
|
|
|
type: string
|
|
|
|
The extremity event IDs that the user has read up to.
|
|
|
|
example: ['$read_this_event:matrix.org']
|
|
|
|
minItems: 1
|
|
|
|
data:
|
|
|
|
maxItems: 1
|
|
|
|
type: object
|
|
|
|
items:
|
|
|
|
description: Metadata for the read receipt.
|
|
|
|
type: string
|
|
|
|
title: Read Receipt Metadata
|
|
|
|
example: ['$read_this_event:matrix.org']
|
|
|
|
properties:
|
|
|
|
data:
|
|
|
|
ts:
|
|
|
|
type: object
|
|
|
|
type: integer
|
|
|
|
description: Metadata for the read receipt.
|
|
|
|
format: int64
|
|
|
|
title: Read Receipt Metadata
|
|
|
|
description: |-
|
|
|
|
properties:
|
|
|
|
A POSIX timestamp in milliseconds for when the user read
|
|
|
|
ts:
|
|
|
|
the event specified in the read receipt.
|
|
|
|
type: integer
|
|
|
|
example: 1533358089009
|
|
|
|
format: int64
|
|
|
|
thread_id:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
x-addedInMatrixVersion: "1.4"
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The root thread event's ID (or `main`) for which
|
|
|
|
A POSIX timestamp in milliseconds for when the user read
|
|
|
|
thread this receipt is intended to be under. If
|
|
|
|
the event specified in the read receipt.
|
|
|
|
not specified, the read receipt is *unthreaded*
|
|
|
|
example: 1533358089009
|
|
|
|
(default).
|
|
|
|
thread_id:
|
|
|
|
example: "$threadroot"
|
|
|
|
type: string
|
|
|
|
required: ['ts']
|
|
|
|
x-addedInMatrixVersion: "1.4"
|
|
|
|
required: ['event_ids', 'data']
|
|
|
|
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: "$threadroot"
|
|
|
|
|
|
|
|
required: ['ts']
|
|
|
|
|
|
|
|
required: ['event_ids', 'data']
|
|
|
|
required: ['m.read']
|
|
|
|
required: ['m.read']
|
|
|
|
example: {
|
|
|
|
example: {
|
|
|
|
"!some_room:example.org": {
|
|
|
|
"!some_room:example.org": {
|
|
|
|