Rm the shared_secrets from used messages

This commit is contained in:
Sosthene 2024-10-12 22:54:39 +02:00
parent 4b8d5c3611
commit 0c5ddefc4b

View File

@ -891,6 +891,7 @@ fn decrypt_with_cached_messages(
let _ = Prd::extract_from_message_with_commitment(&plain, &commitment)?;
// Update the message status
message.status = CachedMessageStatus::NoStatus;
message.shared_secrets = vec![]; // this way we won't check it again
return Ok(Some((
plain,