Spec for MSC2867 (Marking rooms as unread) (#1895)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>pull/1910/head
parent
40d5e48716
commit
cbe8092d8a
@ -0,0 +1 @@
|
||||
Add support for marking rooms as unread as per [MSC2867](https://github.com/matrix-org/matrix-spec-proposals/pull/2867).
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"$ref": "core/event.json",
|
||||
"type": "m.marked_unread",
|
||||
"content": {
|
||||
"unread": true
|
||||
}
|
||||
}
|
@ -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…
Reference in New Issue