Skip to content

Commit

Permalink
events: Stabilize support for private read receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
zecakeh committed Oct 1, 2022
1 parent 4898203 commit c141b7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions crates/ruma-common/CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ Improvements:
* Add `MatrixVersion::V1_4`
* Stabilize default room server ACL push rule
* Stabilize `room_types` in `directory::Filter` and `room_type` in `directory::PublicRoomsChunk`
* Stabilize support for private read receipts

# 0.10.3

Expand Down
1 change: 0 additions & 1 deletion crates/ruma-common/Cargo.toml
Expand Up @@ -32,7 +32,6 @@ markdown = ["pulldown-cmark"]
rand = ["dep:rand_crate", "dep:uuid"]
unstable-exhaustive-types = []
unstable-msc1767 = []
unstable-msc2285 = []
unstable-msc2448 = []
unstable-msc2676 = []
unstable-msc2677 = []
Expand Down
7 changes: 3 additions & 4 deletions crates/ruma-common/src/events/receipt.rs
Expand Up @@ -67,7 +67,7 @@ pub enum ReceiptType {
/// If both `Read` and `ReadPrivate` are present, the one that references
/// the most recent event is used to get the latest read receipt.
///
/// [public read receipt]: https://spec.matrix.org/v1.3/client-server-api/#receipts
/// [public read receipt]: https://spec.matrix.org/v1.4/client-server-api/#receipts
#[ruma_enum(rename = "m.read")]
Read,

Expand All @@ -82,9 +82,8 @@ pub enum ReceiptType {
/// If both `Read` and `ReadPrivate` are present, the one that references
/// the most recent event is used to get the latest read receipt.
///
/// [private read receipt]: https://github.com/matrix-org/matrix-spec-proposals/pull/2285
#[cfg(feature = "unstable-msc2285")]
#[ruma_enum(rename = "org.matrix.msc2285.read.private", alias = "m.read.private")]
/// [private read receipt]: https://spec.matrix.org/v1.4/client-server-api/#private-read-receipts
#[ruma_enum(rename = "m.read.private")]
ReadPrivate,

#[doc(hidden)]
Expand Down
2 changes: 0 additions & 2 deletions crates/ruma/Cargo.toml
Expand Up @@ -119,7 +119,6 @@ unstable-extensible-events = [
]
unstable-msc1767 = ["ruma-common/unstable-msc1767"]
unstable-msc2246 = ["ruma-client-api?/unstable-msc2246"]
unstable-msc2285 = ["ruma-common/unstable-msc2285"]
unstable-msc2448 = [
"ruma-client-api?/unstable-msc2448",
"ruma-common/unstable-msc2448",
Expand Down Expand Up @@ -168,7 +167,6 @@ __ci = [
"unstable-unspecified",
"unstable-sanitize",
"unstable-msc1767",
"unstable-msc2285",
"unstable-msc2448",
"unstable-msc2666",
"unstable-msc2654",
Expand Down

0 comments on commit c141b7d

Please sign in to comment.