Skip to content

Conversation

@javierdfm
Copy link
Contributor

@javierdfm javierdfm commented Nov 18, 2025

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

https://linear.app/stream/issue/CHA-1608/js

Changelog

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

Size Change: +2.27 kB (+0.64%)

Total Size: 359 kB

Filename Size Change
dist/cjs/index.browser.js 119 kB +746 B (+0.63%)
dist/cjs/index.node.js 121 kB +756 B (+0.63%)
dist/esm/index.mjs 119 kB +764 B (+0.65%)

compressed-size-action

@javierdfm javierdfm changed the title feat: batch events webhooks feat: batch channel updates Dec 16, 2025
members: string[] | NewMemberPayload[],
): Promise<APIResponse & UpdateChannelsBatchResponse> {
return await this.client.updateChannelsBatch({
operation: 'invites',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if possible, but to be consistent with removeMembers, the operation should be called 'inviteMembers'?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javierdfm can answer this more properly, but I think the idea is it should be something clear with the abstraction layer for example:

channel.inviteMembers() -> client.updateChannelsBatch()

the operation will be the "user level" layer and the string indicating the operation will be more internal

* @param {string[] | NewMemberPayload[]} members Members to invite
* @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
*/
async inviteMembers(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question. What happens under the hood, when we call inviteMembers? How does it differ from addMembers?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this two options, or just add the member "without permission" or invite the member, this second one needs the member agree with that, the user can disagree and will not be added as a member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants