From 9070c81d3582011ab27649780e1c8a76bbcc2cde Mon Sep 17 00:00:00 2001 From: beltram Date: Thu, 10 Aug 2023 10:44:38 +0200 Subject: [PATCH] feat: increase max past epoch to 3 since backend inordering of messages requires client's config to backend's one + 1 --- crypto/src/mls/conversation/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/mls/conversation/config.rs b/crypto/src/mls/conversation/config.rs index 5412cb5fe9..841249eea4 100644 --- a/crypto/src/mls/conversation/config.rs +++ b/crypto/src/mls/conversation/config.rs @@ -30,7 +30,7 @@ use crate::mls::credential::trust_anchor::PerDomainTrustAnchor; use crate::prelude::{CryptoResult, MlsCiphersuite}; /// Sets the config in OpenMls for the oldest possible epoch(past current) that a message can be decrypted -pub(crate) const MAX_PAST_EPOCHS: usize = 2; +pub(crate) const MAX_PAST_EPOCHS: usize = 3; /// The configuration parameters for a group/conversation #[derive(Debug, Clone, Default)]