-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
- Loading branch information
1 parent
40d5e48
commit cbe8092
Showing
5 changed files
with
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for marking rooms as unread as per [MSC2867](https://github.com/matrix-org/matrix-spec-proposals/pull/2867). |
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"] | ||
} |