Skip to content

Create groups.addAll endpoint and add activeUsersOnly param.#6505

Merged
engelgabriel merged 2 commits into
RocketChat:developfrom
nathanmarcos:add-users-to-private-group-endpoint
Mar 29, 2017
Merged

Create groups.addAll endpoint and add activeUsersOnly param.#6505
engelgabriel merged 2 commits into
RocketChat:developfrom
nathanmarcos:add-users-to-private-group-endpoint

Conversation

@nathanmarcos

Copy link
Copy Markdown

@RocketChat/core

We need to add all active users to a private group or a channel, so we created the new groups.addAll endpoint and added the activeUsersOnly to addAllUsersToRoom.js

@CLAassistant

CLAassistant commented Mar 28, 2017

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@nathanmarcos nathanmarcos changed the title Create groups.addAll endpoint and add param activeUsersOnly. Create groups.addAll endpoint and add activeUsersOnly param. Mar 28, 2017
Comment thread server/methods/addAllUserToRoom.js Outdated
@@ -1,7 +1,8 @@
Meteor.methods({
addAllUserToRoom(rid) {
addAllUserToRoom(rid, activeUsersOnly) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about changing this so that it defaults to false making it an optional parameter with a default value? Something like: activeUsersOnly = false

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Totally agreed! I'll make the changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the pull requests and being flexible! :)

@graywolf336 graywolf336 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this! To whoever merges this, please also merge this at the same time: RocketChat/docs-old#265

@engelgabriel engelgabriel added this to the 0.55.0 milestone Mar 29, 2017
@engelgabriel engelgabriel merged commit fef3223 into RocketChat:develop Mar 29, 2017
@nathanmarcos nathanmarcos deleted the add-users-to-private-group-endpoint branch March 16, 2018 15:03
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