diff --git a/xmtp_mls/src/client.rs b/xmtp_mls/src/client.rs index 25c690131..07b2fb62f 100644 --- a/xmtp_mls/src/client.rs +++ b/xmtp_mls/src/client.rs @@ -223,8 +223,7 @@ where let conn = &mut self.store.conn()?; let stored_group: Option = conn.fetch(&group_id)?; match stored_group { - // EM: Will neeed to update StoredGroup and pass added_by_id here.... - Some(group) => Ok(MlsGroup::new(self, group.id, group.created_at_ns, None)), + Some(group) => Ok(MlsGroup::new(self, group.id, group.created_at_ns, group.added_by_address)), None => Err(ClientError::Generic("group not found".to_string())), } } @@ -248,8 +247,7 @@ where .conn()? .find_groups(allowed_states, created_after_ns, created_before_ns, limit)? .into_iter() - // EM: Will neeed to update StoredGroup and pass added_by_id here.... - .map(|stored_group| MlsGroup::new(self, stored_group.id, stored_group.created_at_ns, None)) + .map(|stored_group| MlsGroup::new(self, stored_group.id, stored_group.created_at_ns, stored_group.added_by_address)) .collect()) }