From 8f22d8908a93ca0de2d87c96f1e79ad433a9df74 Mon Sep 17 00:00:00 2001 From: "Mark @ Germ" Date: Wed, 5 Feb 2025 20:39:52 -0800 Subject: [PATCH] public accessor for PrivateMessage in MlsMessage --- mls-rs/src/group/framing.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mls-rs/src/group/framing.rs b/mls-rs/src/group/framing.rs index 116b1b27..3df6195c 100644 --- a/mls-rs/src/group/framing.rs +++ b/mls-rs/src/group/framing.rs @@ -620,6 +620,14 @@ impl FramedContent { } } +// Germ +impl MlsMessage { + //help us work with the private message + pub fn private_message(&self) -> Option { + self.clone().into_ciphertext() + } +} + #[cfg(test)] pub(crate) mod test_utils { #[cfg(feature = "private_message")]