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,