Spec for MSC2867 (Marking rooms as unread) (#1895)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
40d5e48716
commit
cbe8092d8a
5 changed files with 80 additions and 5 deletions
7
data/event-schemas/examples/m.marked_unread.yaml
Normal file
7
data/event-schemas/examples/m.marked_unread.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"$ref": "core/event.json",
|
||||
"type": "m.marked_unread",
|
||||
"content": {
|
||||
"unread": true
|
||||
}
|
||||
}
|
25
data/event-schemas/schema/m.marked_unread.yaml
Normal file
25
data/event-schemas/schema/m.marked_unread.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"type": "object",
|
||||
"title": "Unread Marker Event",
|
||||
"description": "The current state of the user's unread marker in a room. This event appears in the user's room account data for the room the marker is applicable for.",
|
||||
"allOf": [{
|
||||
"$ref": "core-event-schema/event.yaml"
|
||||
}],
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"unread": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the room is marked unread or not."
|
||||
}
|
||||
},
|
||||
"required": ["unread"]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["m.marked_unread"]
|
||||
}
|
||||
},
|
||||
"required": ["type", "content"]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue