Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 29, 2017
Merged

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

merged 2 commits into from
Mar 29, 2017

Conversation

nathanmarcos
Copy link

@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
Copy link

CLAassistant commented Mar 28, 2017

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
@@ -1,7 +1,8 @@
Meteor.methods({
addAllUserToRoom(rid) {
addAllUserToRoom(rid, activeUsersOnly) {
Copy link
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
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
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! :)

Copy link
Contributor

@graywolf336 graywolf336 left a comment

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants