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 #857 Cannot add user to room. #860

Merged
merged 1 commit into from
Sep 23, 2015

Conversation

rwakida
Copy link
Contributor

@rwakida rwakida commented Sep 23, 2015

Fix bug where username incorrectly passed to findOneByUsername. Also adds argument validation.

@Sing-Li
Copy link
Member

Sing-Li commented Sep 23, 2015

@marceloschmidt - insomnia?

@sampaiodiego
Copy link
Member

@Sing-Li the label is added by waffle.io 😛

@sampaiodiego
Copy link
Member

I'm looking into this.. I found some other bugs, trying to fix them too

@sampaiodiego
Copy link
Member

btw, thanks @rwakida for the quick fix 😄

@@ -13,7 +19,7 @@ Meteor.methods
if room.usernames.indexOf(data.username) isnt -1
return

newUser = RocketChat.models.Users.findOneByUsername username: data.username
Copy link
Member

Choose a reason for hiding this comment

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

My bad, sorry :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You made a lot of changes. It's hard to catch everything. 😄

I like how you consolidated the logic into the models. It should be a lot easier to maintain.

@rodrigok rodrigok deleted the bugfix/857-cannot-add-user-to-room branch September 23, 2015 13:58
@rwakida
Copy link
Contributor Author

rwakida commented Sep 23, 2015

N/P @sampaiodiego . I'll be the late night Hawaii tech support. 😀

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.

5 participants