Skip to content

Commit

Permalink
fix node bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Jul 9, 2024
1 parent 14f61cc commit c759a6e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bindings_node/src/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use xmtp_proto::xmtp::mls::message_contents::EncodedContent;
use crate::{
encoded_content::NapiEncodedContent,
messages::{NapiListMessagesOptions, NapiMessage},
mls_client::{RustXmtpClient, TonicApiClient},
mls_client::RustXmtpClient,
streams::NapiStreamCloser,
};

Expand Down Expand Up @@ -158,10 +158,7 @@ impl NapiGroup {
);

let id = group
.send_message_optimistic(
encoded_content.encode_to_vec().as_slice(),
&self.inner_client,
)
.send_message_optimistic(encoded_content.encode_to_vec().as_slice())
.map_err(|e| Error::from_reason(format!("{}", e)))?;

Ok(id)
Expand All @@ -175,7 +172,10 @@ impl NapiGroup {
self.group_id.clone(),
self.created_at_ns,
);
group.publish_messages(&self.inner_client).await?;
group
.publish_messages(&self.inner_client)
.await
.map_err(|e| Error::from_reason(format!("{}", e)))?;
Ok(())
}

Expand Down

0 comments on commit c759a6e

Please sign in to comment.