diff --git a/xmtp_mls/src/groups/members.rs b/xmtp_mls/src/groups/members.rs index acd31d5dc..6f80650c2 100644 --- a/xmtp_mls/src/groups/members.rs +++ b/xmtp_mls/src/groups/members.rs @@ -38,11 +38,9 @@ pub fn aggregate_member_list(openmls_group: &OpenMlsGroup) -> Result = openmls_group .members() .filter_map(|member| { - let basic_credential = BasicCredential::try_from( - &member.credential - ) - .ok() - .map(|basic_credential| (basic_credential))?; + 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, diff --git a/xmtp_mls/src/groups/mod.rs b/xmtp_mls/src/groups/mod.rs index 1fe82434e..f10814fe7 100644 --- a/xmtp_mls/src/groups/mod.rs +++ b/xmtp_mls/src/groups/mod.rs @@ -220,7 +220,7 @@ where let mut mls_group = mls_welcome.into_group(provider)?; mls_group.save(provider.key_store())?; - + let group_id = mls_group.group_id().to_vec(); let to_store = StoredGroup::new(group_id, now_ns(), GroupMembershipState::Pending); let stored_group = provider.conn().insert_or_ignore_group(to_store)?; diff --git a/xmtp_mls/src/identity.rs b/xmtp_mls/src/identity.rs index 34eba58cf..68d3d0ba9 100644 --- a/xmtp_mls/src/identity.rs +++ b/xmtp_mls/src/identity.rs @@ -9,9 +9,8 @@ use openmls::{ extensions::{errors::InvalidExtensionError, ApplicationIdExtension, LastResortExtension}, prelude::{ tls_codec::{Error as TlsCodecError, Serialize}, - Capabilities, Credential as OpenMlsCredential, CredentialType, CredentialWithKey, - CryptoConfig, Extension, ExtensionType, Extensions, KeyPackage, KeyPackageNewError, - Lifetime, + Capabilities, Credential as OpenMlsCredential, CredentialWithKey, CryptoConfig, Extension, + ExtensionType, Extensions, KeyPackage, KeyPackageNewError, Lifetime, }, versions::ProtocolVersion, };