Add REST API method to list online users in a room#5502
Merged
engelgabriel merged 6 commits intoRocketChat:developfrom Feb 9, 2017
Merged
Add REST API method to list online users in a room#5502engelgabriel merged 6 commits intoRocketChat:developfrom
engelgabriel merged 6 commits intoRocketChat:developfrom
Conversation
graywolf336
suggested changes
Jan 16, 2017
Contributor
graywolf336
left a comment
There was a problem hiding this comment.
Thanks for this pull request, I apologize for missing this route when I moved what I thought was everything over.
| get: function() { | ||
| const room = findChannelById(this.queryParams.roomId); | ||
|
|
||
| if (room.statusCode) { |
Contributor
There was a problem hiding this comment.
Can you merge the latest code? As this line of code isn't needed any more.
| } | ||
| }); | ||
|
|
||
| RocketChat.API.v1.addRoute('channels.online', { authRequired: true }, { |
Contributor
There was a problem hiding this comment.
Can you add this to the groups as well? And if you're up for it, create the documentation on this over on our docs? https://github.com/RocketChat/Rocket.Chat.Docs/tree/master/6.%20Developer%20Guides/REST%20API
Member
|
@graywolf336 can you do the sync so we can merge this? |
Member
|
@graywolf336 Can you review this again? |
Contributor
|
@rodrigok What would you think about changing it from just |
Member
|
@graywolf336 Done :) |
graywolf336
approved these changes
Feb 9, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@RocketChat/core
This pull request re-implements the API method to get online users in a room. It was already implemented by #2918 but it got lost when moving the api to /v1 namespace.