-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Create groups.addAll endpoint and add activeUsersOnly param. #6505
Conversation
server/methods/addAllUserToRoom.js
Outdated
@@ -1,7 +1,8 @@ | |||
Meteor.methods({ | |||
addAllUserToRoom(rid) { | |||
addAllUserToRoom(rid, activeUsersOnly) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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! :)
There was a problem hiding this 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
@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