forked from matrix-org/matrix-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spec for MSC2867 (Marking rooms as unread)
Relates to: matrix-org/matrix-spec-proposals#2867 Signed-off-by: Johannes Marbach <[email protected]>
- Loading branch information
Showing
4 changed files
with
79 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$ref": "core/event.json", | ||
"type": "m.marked_unread", | ||
"content": { | ||
"unread": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
} |