Skip to content

Commit

Permalink
fix(forked-groups): make add members thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenani committed Nov 27, 2024
1 parent c65271f commit 7581176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,8 @@ impl<ScopedClient: ScopedGroupClient> MlsGroup<ScopedClient> {
&self,
inbox_ids: &[S],
) -> Result<(), GroupError> {
let _permit = MLS_COMMIT_LOCK.acquire().await.unwrap();

let provider = self.client.mls_provider()?;
let ids = inbox_ids.iter().map(AsRef::as_ref).collect::<Vec<&str>>();
let intent_data = self
Expand Down

0 comments on commit 7581176

Please sign in to comment.