From 4d04bf675d63abd894fce515ad5be1e5e824fb1d Mon Sep 17 00:00:00 2001 From: Ethan Mateja Date: Tue, 26 Mar 2024 17:05:00 -0700 Subject: [PATCH] Update aggregate_member_list() .filter_map --- xmtp_mls/src/groups/members.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmtp_mls/src/groups/members.rs b/xmtp_mls/src/groups/members.rs index 1cc79cd92..acd31d5dc 100644 --- a/xmtp_mls/src/groups/members.rs +++ b/xmtp_mls/src/groups/members.rs @@ -38,7 +38,11 @@ pub fn aggregate_member_list(openmls_group: &OpenMlsGroup) -> Result = openmls_group .members() .filter_map(|member| { - let basic_credential = BasicCredential::try_from(&member.credential).ok()?; + let basic_credential = BasicCredential::try_from( + &member.credential + ) + .ok() + .map(|basic_credential| (basic_credential))?; Identity::get_validated_account_address( basic_credential.identity(), &member.signature_key,