Spec for MSC2867 (Marking rooms as unread) (#1895)

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
Johannes Marbach 2024-07-15 15:38:57 +02:00 committed by GitHub
parent 40d5e48716
commit cbe8092d8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 80 additions and 5 deletions

View file

@ -0,0 +1,7 @@
{
"$ref": "core/event.json",
"type": "m.marked_unread",
"content": {
"unread": true
}
}

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