Skip to content

Commit

Permalink
public accessor for PrivateMessage in MlsMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
germ-mark committed Feb 6, 2025
1 parent 44cec5b commit 8f22d89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mls-rs/src/group/framing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,14 @@ impl FramedContent {
}
}

// Germ
impl MlsMessage {
//help us work with the private message
pub fn private_message(&self) -> Option<PrivateMessage> {
self.clone().into_ciphertext()
}
}

#[cfg(test)]
pub(crate) mod test_utils {
#[cfg(feature = "private_message")]
Expand Down

0 comments on commit 8f22d89

Please sign in to comment.