Skip to content

Commit

Permalink
needless bit flipping
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Dec 9, 2024
1 parent 5c12d76 commit 66c5744
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,16 +531,11 @@ impl FfiXmtpClient {

pub fn get_hmac_keys(&self) -> Result<Vec<FfiHmacKey>, GenericError> {
let inner = self.inner_client.as_ref();
let conversations: Vec<Arc<FfiConversation>> = inner
.find_groups(GroupQueryArgs::default())?
.into_iter()
.map(|group| Arc::new(group.into()))
.collect();
let conversations = inner.find_groups(GroupQueryArgs::default())?;

let mut keys = vec![];
for conversation in conversations {
let mut k = conversation
.inner
.hmac_keys(-1..=1)?
.into_iter()
.map(Into::into)
Expand Down

0 comments on commit 66c5744

Please sign in to comment.