From d327edf686e91a27dc4c4358f6267506a102b3b4 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Fri, 5 Jan 2024 15:22:26 -0800 Subject: [PATCH] Fix bug --- openmls/src/extensions/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmls/src/extensions/mod.rs b/openmls/src/extensions/mod.rs index 149740903a..69bd3bfedf 100644 --- a/openmls/src/extensions/mod.rs +++ b/openmls/src/extensions/mod.rs @@ -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,