From 27ecd461505bcffee40d4ff5fcf88706b9572067 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:21:10 -0700 Subject: [PATCH] Add missing group context extensions --- openmls/src/extensions/test_extensions.rs | 2 +- openmls/src/group/core_group/mod.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openmls/src/extensions/test_extensions.rs b/openmls/src/extensions/test_extensions.rs index 9be83bee15..dfef65036a 100644 --- a/openmls/src/extensions/test_extensions.rs +++ b/openmls/src/extensions/test_extensions.rs @@ -484,7 +484,7 @@ fn last_resort_extension(ciphersuite: Ciphersuite, provider: &impl OpenMlsProvid let welcome: MlsMessageIn = welcome.into(); let welcome = welcome.into_welcome().expect("expected a welcome"); - let _bob_group = StagedWelcome::new_from_welcome( + let bob_group = StagedWelcome::new_from_welcome( provider, mls_group_create_config.join_config(), welcome, diff --git a/openmls/src/group/core_group/mod.rs b/openmls/src/group/core_group/mod.rs index 23d6a28ea3..d1d4dddccd 100644 --- a/openmls/src/group/core_group/mod.rs +++ b/openmls/src/group/core_group/mod.rs @@ -604,6 +604,10 @@ impl CoreGroup { self.public_group.group_context() } + pub fn group_context_extensions(&self) -> &Extensions { + self.context().extensions() + } + /// Get the group ID pub(crate) fn group_id(&self) -> &GroupId { self.public_group.group_id()