Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Jan 5, 2024
1 parent f864dfc commit d327edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmls/src/extensions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ impl Extensions {

/// Get a reference to the [`ProtectedMetadata`] if there is any.
pub fn protected_metadata(&self) -> Option<&ProtectedMetadata> {
self.find_by_type(ExtensionType::ExternalSenders)
self.find_by_type(ExtensionType::ProtectedMetadata)
.and_then(|e| match e {
Extension::ProtectedMetadata(e) => Some(e),
_ => None,
Expand Down

0 comments on commit d327edf

Please sign in to comment.