Skip to content

Commit

Permalink
fix: removes unnecessary group_id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tuddman committed Aug 1, 2024
1 parent 4296e9c commit 57b83dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,6 @@ impl FfiGroup {
let inner_client = Arc::clone(&self.inner_client);
let handle = MlsGroup::stream_with_callback(
inner_client,
self.group_id.clone(),
self.created_at_ns,
move |message| message_callback.on_message(message.into()),
);
Expand Down
1 change: 0 additions & 1 deletion bindings_node/src/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ impl NapiGroup {
callback.create_threadsafe_function(0, |ctx| Ok(vec![ctx.value]))?;
let stream_closer = MlsGroup::stream_with_callback(
self.inner_client.clone(),
self.group_id.clone(),
self.created_at_ns,
move |message| {
tsfn.call(Ok(message.into()), ThreadsafeFunctionCallMode::Blocking);
Expand Down
4 changes: 2 additions & 2 deletions xmtp_mls/src/groups/subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ impl MlsGroup {
}

pub fn stream_with_callback<ApiClient>(
&self,
client: Arc<Client<ApiClient>>,
group_id: Vec<u8>,
created_at_ns: i64,
callback: impl FnMut(StoredGroupMessage) + Send + 'static,
) -> StreamHandle<Result<(), crate::groups::ClientError>>
Expand All @@ -127,7 +127,7 @@ impl MlsGroup {
Client::<ApiClient>::stream_messages_with_callback(
client,
HashMap::from([(
group_id,
self.group_id.clone(),
MessagesStreamInfo {
convo_created_at_ns: created_at_ns,
cursor: 0,
Expand Down

0 comments on commit 57b83dd

Please sign in to comment.