From bf1a4782f834ad73f3b8cbf5a8d5417a0859ac2c Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:56:55 -0700 Subject: [PATCH] Set max epochs on create config (#38) --- openmls/src/group/mls_group/builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmls/src/group/mls_group/builder.rs b/openmls/src/group/mls_group/builder.rs index 0cc854da9..3d6777d95 100644 --- a/openmls/src/group/mls_group/builder.rs +++ b/openmls/src/group/mls_group/builder.rs @@ -136,7 +136,8 @@ impl MlsGroupBuilder { .map_err(LibraryError::unexpected_crypto_error)?; let message_secrets_store = MessageSecretsStore::new_with_secret( - self.max_past_epochs.unwrap_or_default(), + self.max_past_epochs + .unwrap_or(mls_group_create_config.max_past_epochs()), message_secrets, );