Skip to content
Snippets Groups Projects
Commit fa040c42 authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge pull request #791 from graywolf336/bugfix-790

Fix error on inviting already joined users, fixes #790
parents 70c30690 60db7d0d
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,12 @@ else
if not user?
return
# verify the user isn't already in this room
room = ChatRoom.findOne({ _id: item.rid, usernames: { $nin: [ user.username ]} })
if not room?
return
Meteor.runAsUser user._id, ->
Meteor.call 'joinRoom', item.rid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment