docs-matrix-spec/data/event-schemas/schema/m.marked_unread.yaml
Johannes Marbach cbe8092d8a
Spec for MSC2867 (Marking rooms as unread) (#1895)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2024-07-15 14:38:57 +01:00

25 lines
771 B
YAML

{
"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"]
}