Skip to content
Snippets Groups Projects
Commit d1afe6a7 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Do not get field `usernames` with room on joinDefaultChannel

parent b5c9a8a4
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ Meteor.methods ...@@ -7,7 +7,7 @@ Meteor.methods
RocketChat.callbacks.run 'beforeJoinDefaultChannels', user RocketChat.callbacks.run 'beforeJoinDefaultChannels', user
RocketChat.models.Rooms.findByDefaultAndTypes(true, ['c', 'p']).forEach (room) -> RocketChat.models.Rooms.findByDefaultAndTypes(true, ['c', 'p'], {fields: {usernames: 0}}).forEach (room) ->
# put user in default rooms # put user in default rooms
RocketChat.models.Rooms.addUsernameById room._id, user.username RocketChat.models.Rooms.addUsernameById room._id, user.username
......
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