From d7a53d8bac741c8f30a68e9432220fec0b312002 Mon Sep 17 00:00:00 2001 From: Johannes Becker <66059836+johannescpk@users.noreply.github.com> Date: Tue, 19 Apr 2022 15:34:33 +0200 Subject: [PATCH] common: Make Restricted::allow public --- crates/ruma-common/CHANGELOG.md | 1 + crates/ruma-common/src/events/room/join_rules.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 0d1ae4ce..6038b2af 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -30,6 +30,7 @@ Improvements: * Add unstable support for voice messages (MSC3245) * Add unstable support for threads (MSC3440) * Add `ReceiptEventContent::user_receipt` +* Make `Restricted::allow` public # 0.8.0 diff --git a/crates/ruma-common/src/events/room/join_rules.rs b/crates/ruma-common/src/events/room/join_rules.rs index a02a574d..0801639f 100644 --- a/crates/ruma-common/src/events/room/join_rules.rs +++ b/crates/ruma-common/src/events/room/join_rules.rs @@ -154,7 +154,7 @@ impl<'de> Deserialize<'de> for JoinRule { #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Restricted { /// Allow rules which describe conditions that allow joining a room. - allow: Vec, + pub allow: Vec, } impl Restricted {