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

[FIX] Added helper for testing if the current user matches the params #6845

Merged
merged 1 commit into from
May 2, 2017
Merged

[FIX] Added helper for testing if the current user matches the params #6845

merged 1 commit into from
May 2, 2017

Conversation

abrom
Copy link
Contributor

@abrom abrom commented Apr 30, 2017

@RocketChat/core

  • Refactors users.getPresence to use current user param matcher
  • Modifies users.setAvatar to support username parameter

Updated users.getPresence and users.setAvatar REST APIs to use current user param helper
@@ -67,20 +67,19 @@ RocketChat.API.v1.addRoute('users.getAvatar', { authRequired: false }, {

RocketChat.API.v1.addRoute('users.getPresence', { authRequired: true }, {
get() {
//BLAHHHHHHHHHH :'(
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhhhhh so nice to have this removed ;)

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.

Thank for you for these changes, makes it all much cleaner and easier to use!

Do you mind updating the documentation to go along with this? If not, I will add it to my list and get it changed in the docs.

@engelgabriel engelgabriel merged commit 513fcfe into RocketChat:develop May 2, 2017
@abrom
Copy link
Contributor Author

abrom commented May 3, 2017

Yep no problem. I'll send through a PR

@abrom abrom deleted the add-user-not-from-params branch May 6, 2017 11:21
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.

None yet

3 participants