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

Use real name instead of username for messages and direct messages list #3851

Merged
merged 58 commits into from
Apr 4, 2017
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
b30d63b
Start changing usernames to actual names
alexbrazier Jun 14, 2016
eec5ea8
Merge branch 'develop' into feature/display-name
alexbrazier Jun 22, 2016
29f9ceb
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into feat…
alexbrazier Jul 23, 2016
d8a2682
More changes to use actual names instead of usernames
alexbrazier Jul 23, 2016
2c1d6e5
Fix linting error
alexbrazier Jul 23, 2016
b7a6bc8
Restore @ icon for direct messages
alexbrazier Aug 4, 2016
5377d89
Merge remote-tracking branch 'origin' into feature/display-name
alexbrazier Aug 4, 2016
553ab70
Update messages and subscriptions on name change
alexbrazier Aug 5, 2016
9472a6b
Merge branch 'develop' into feature/display-name
alexbrazier Sep 8, 2016
1d3c9c9
Fix issues caused by merge
alexbrazier Sep 8, 2016
fed2c79
Add setting to use real name
alexbrazier Sep 10, 2016
12e0606
Merge branch 'develop' into feature/display-name
alexbrazier Sep 11, 2016
5720b9e
Show real name in spotlight search
alexbrazier Sep 11, 2016
2d0570a
Merge branch 'develop' into feature/display-name
alexbrazier Sep 13, 2016
c436466
Add migration to add user name to messages
alexbrazier Sep 14, 2016
f7c6cf3
Improve messages migration
alexbrazier Sep 14, 2016
14e388c
Update subscriptions in migration
alexbrazier Sep 14, 2016
51f65d9
Improve subscriptions
alexbrazier Sep 14, 2016
bc4200e
Merge branch 'develop' into feature/display-name
alexbrazier Sep 14, 2016
409b279
Make travis happy
alexbrazier Sep 14, 2016
8473f6b
Rename conflicting migration
alexbrazier Sep 15, 2016
39a6379
Merge branch 'develop' into feature/display-name
alexbrazier Sep 15, 2016
557c36b
Merge branch 'develop' into feature/display-name
alexbrazier Sep 21, 2016
89e9cc0
Remove unnecessary else
alexbrazier Sep 21, 2016
a802409
Merge branch 'develop' into feature/display-name
alexbrazier Sep 25, 2016
409f964
Merge branch 'develop' into feature/display-name
alexbrazier Oct 4, 2016
7cfcc21
Merge branch 'develop' into feature/display-name
alexbrazier Oct 19, 2016
e280f58
Fix bug with admin setting not setting name to username
alexbrazier Oct 19, 2016
4040985
Merge branch 'develop' into feature/display-name
alexbrazier Nov 24, 2016
f475c01
Improved full name migration
alexbrazier Nov 24, 2016
20a0fc0
Merge branch 'develop' into feature/display-name
alexbrazier Dec 4, 2016
c3388d9
Merge branch 'develop' into feature/display-name
alexbrazier Dec 7, 2016
c342223
Merge branch 'develop' into feature/display-name
alexbrazier Dec 14, 2016
debcf40
Tidy up and show real name on notifications
alexbrazier Dec 14, 2016
cddb810
Set use real name setting default as false
alexbrazier Dec 20, 2016
7299c03
Merge branch 'develop' into feature/display-name
alexbrazier Dec 20, 2016
439a9bf
Merge branch 'develop' into feature/display-name
alexbrazier Dec 20, 2016
404f758
Merge branch 'develop' into feature/display-name
alexbrazier Jan 11, 2017
253f993
Add missing files with name changes
alexbrazier Jan 11, 2017
7f51161
Eslint
alexbrazier Jan 11, 2017
dad299a
Merge branch 'develop' into feature/display-name
alexbrazier Jan 26, 2017
2c44667
Merge branch 'develop' into feature/display-name
alexbrazier Jan 27, 2017
1fb0123
Use real name in spotlight search
alexbrazier Jan 27, 2017
3d37581
Show username next to real name
alexbrazier Jan 27, 2017
1050044
Show real name in members list
alexbrazier Jan 28, 2017
429d35c
Allow users to be mentioned using real name
alexbrazier Jan 28, 2017
c9bfdc6
Missing semicolon
alexbrazier Jan 28, 2017
f73c018
Merge branch 'develop' into feature/display-name
alexbrazier Feb 8, 2017
ecef03e
Allow searching real name with spotlight
alexbrazier Feb 8, 2017
113e861
Merge branch 'develop' into feature/display-name
alexbrazier Feb 19, 2017
13d0286
Merge branch 'develop' into feature/display-name
alexbrazier Mar 7, 2017
1911e57
Fix unit tests
alexbrazier Mar 8, 2017
f6cc3fb
Fix tests
alexbrazier Mar 8, 2017
7844083
Merge branch 'develop' into feature/display-name
alexbrazier Mar 27, 2017
1dce810
Fix eslint
alexbrazier Mar 27, 2017
1d7c70e
Merge branch 'develop' into feature/display-name
alexbrazier Apr 1, 2017
18fd157
PR changes/fixes
alexbrazier Apr 1, 2017
cf6f43b
Update getUsersOfRoom.js
rodrigok Apr 3, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
"Custom_Fields" : "Custom Fields",
"Custom_oauth_helper" : "When setting up your OAuth Provider, you'll have to inform a Callback URL. Use <pre>%s</pre> .",
"Custom_oauth_unique_name" : "Custom oauth unique name",
"Custom_Scripts" : "Custom Scripts",
"Custom_Script_Logged_In" : "Custom Script for logged in users",
"Custom_Script_Logged_Out" : "Custom Script for logged out users",
"Custom_Translations" : "Custom Translations",
Expand Down Expand Up @@ -1240,6 +1241,7 @@
"Type_your_new_password" : "Type your new password",
"UI_DisplayRoles" : "Display Roles",
"UI_Merge_Channels_Groups" : "Merge private groups with channels",
"UI_Use_Real_Name" : "Use Real Name",
"Unarchive" : "Unarchive",
"Unmute_someone_in_room" : "Unmute someone in the room",
"Unmute_user" : "Unmute user",
Expand Down Expand Up @@ -1276,6 +1278,7 @@
"User_has_been_muted_in_s" : "User has been muted in %s",
"User_has_been_removed_from_s" : "User has been removed from %s",
"User_Info" : "User Info",
"User_Interface" : "User Interface",
"User_is_no_longer_an_admin" : "User is no longer an admin",
"User_is_now_an_admin" : "User is now an admin",
"User_joined_channel" : "Has joined the channel.",
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-importer-hipchat/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Importer.HipChat = class Importer.HipChat extends Importer.Base

getRocketUser: (hipchatId) =>
for user in @users.users when user.user_id is hipchatId
return RocketChat.models.Users.findOneById user.rocketId, { fields: { username: 1 }}
return RocketChat.models.Users.findOneById user.rocketId, { fields: { username: 1, name: 1 }}

convertHipChatMessageToRocketChat: (message) =>
if message?
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-importer-slack/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ Importer.Slack = class Importer.Slack extends Importer.Base

getRocketUser: (slackId) =>
for user in @users.users when user.id is slackId
return RocketChat.models.Users.findOneById user.rocketId, { fields: { username: 1 }}
return RocketChat.models.Users.findOneById user.rocketId, { fields: { username: 1, name: 1 }}

convertSlackMessageToRocketChat: (message) =>
if message?
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Package.onUse(function(api) {
api.addFiles('server/functions/settings.coffee', 'server');
api.addFiles('server/functions/setUserAvatar.js', 'server');
api.addFiles('server/functions/setUsername.coffee', 'server');
api.addFiles('server/functions/setRealName.coffee', 'server');
api.addFiles('server/functions/setEmail.js', 'server');
api.addFiles('server/functions/unarchiveRoom.js', 'server');
api.addFiles('server/functions/updateMessage.js', 'server');
Expand Down
3 changes: 2 additions & 1 deletion packages/rocketchat-lib/server/functions/addUserToRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ RocketChat.addUserToRoom = function(rid, user, inviter, silenced) {
ts: now,
u: {
_id: inviter._id,
username: inviter.username
username: inviter.username,
name: inviter.name
}
});
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RocketChat.sendMessage = (user, message, room, upsert = false) ->
unless message.ts?
message.ts = new Date()

message.u = _.pick user, ['_id','username']
message.u = _.pick user, ['_id','username', 'name']

message.rid = room._id

Expand Down
24 changes: 24 additions & 0 deletions packages/rocketchat-lib/server/functions/setRealName.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
RocketChat._setRealName = (userId, name) ->
Copy link
Member

Choose a reason for hiding this comment

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

Can we convert to JS?

Copy link
Member

Choose a reason for hiding this comment

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

And, why not inside the user's model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's how setUsername is done, so I just copied that. I think its because it has to make more requests to other models, so it's not self contained within one model.

name = s.trim name
if not userId or not name
return false

user = RocketChat.models.Users.findOneById userId

# User already has desired name, return
if user.name is name
return user

previousName = user.name

if previousName
RocketChat.models.Messages.updateAllNamesByUserId user._id, name
RocketChat.models.Subscriptions.setRealNameForDirectRoomsWithUsername user.username, name

# Set new name
RocketChat.models.Users.setName user._id, name
user.name = name
return user

RocketChat.setRealName = RocketChat.RateLimiter.limitFunction RocketChat._setRealName, 1, 60000,
0: () -> return not Meteor.userId() or not RocketChat.authz.hasPermission(Meteor.userId(), 'edit-other-user-info') # Administrators have permission to change others names, so don't limit those
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Meteor.methods


newUser = RocketChat.models.Users.findOneByUsername data.username

RocketChat.addUserToRoom(data.rid, newUser, Meteor.user());

return true
6 changes: 5 additions & 1 deletion packages/rocketchat-lib/server/methods/setRealName.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ Meteor.methods
if _.trim name
name = _.trim name

unless RocketChat.models.Users.setName Meteor.userId(), name
#unless RocketChat.models.Users.setName Meteor.userId(), name
unless RocketChat.setRealName user._id, name
throw new Meteor.Error 'error-could-not-change-name', "Could not change name", { method: 'setRealName' }

return name

RocketChat.RateLimiter.limitMethod 'setRealName', 1, 1000,
userId: (userId) -> return true
11 changes: 11 additions & 0 deletions packages/rocketchat-lib/server/models/Messages.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,16 @@ RocketChat.models.Messages = new class extends RocketChat.models._Base

return @update query, update

updateAllNamesByUserId: (userId, name) ->
query =
'u._id': userId

update =
$set:
"u.name": name

return @update query, update, { multi: true }

updateUserStarById: (_id, userId, starred) ->
query =
_id: _id
Expand Down Expand Up @@ -273,6 +283,7 @@ RocketChat.models.Messages = new class extends RocketChat.models._Base
u:
_id: user._id
username: user.username
name: user.name
groupable: false

_.extend record, extraData
Expand Down
11 changes: 11 additions & 0 deletions packages/rocketchat-lib/server/models/Subscriptions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,17 @@ RocketChat.models.Subscriptions = new class extends RocketChat.models._Base

return @update query, update, { multi: true }

setRealNameForDirectRoomsWithUsername: (username, name) ->
query =
name: username
t: "d"

update =
$set:
fname: name

return @update query, update, { multi: true }

setNameForDirectRoomsWithOldName: (oldName, name) ->
query =
name: oldName
Expand Down
5 changes: 3 additions & 2 deletions packages/rocketchat-lib/server/startup/settings.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,14 @@ RocketChat.settings.addGroup 'Layout', ->
@add 'Layout_Privacy_Policy', 'Privacy Policy <br> Go to APP SETTINGS -> Layout to customize this page.', { type: 'code', code: 'text/html', multiline: true, public: true }
@add 'Layout_Sidenav_Footer', '<img style="left: 10px; position: absolute;" src="/assets/logo.png" />', { type: 'code', code: 'text/html', public: true, i18nDescription: 'Layout_Sidenav_Footer_description' }

@section 'Custom Scripts', ->
@section 'Custom_Scripts', ->
@add 'Custom_Script_Logged_Out', '//Add your script', { type: 'code', multiline: true, public: true }
@add 'Custom_Script_Logged_In', '//Add your script', { type: 'code', multiline: true, public: true }

@section 'User Interface', ->
@section 'User_Interface', ->
@add 'UI_DisplayRoles', true, { type: 'boolean', public: true }
@add 'UI_Merge_Channels_Groups', true, { type: 'boolean', public: true }
@add 'UI_Use_Real_Name', true, { type: 'boolean', public: true }


RocketChat.settings.addGroup 'Logs', ->
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/startup/defaultRoomTypes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RocketChat.roomTypes.add 'd', 20,
$all: [identifier, user.username]
return ChatRoom.findOne(query)
roomName: (roomData) ->
return ChatSubscription.findOne({ rid: roomData._id }, { fields: { name: 1 } })?.name
return ChatSubscription.findOne({ rid: roomData._id }, { fields: { name: 1, fname: 1 } })
condition: ->
return RocketChat.authz.hasAtLeastOnePermission ['view-d-room', 'view-joined-room']

Expand Down
4 changes: 4 additions & 0 deletions packages/rocketchat-theme/assets/stylesheets/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -2279,6 +2279,10 @@ label.required:after {
display: inline-block;
}
}
.secondary-name {
color: #666;
font-size: 15px;
}
}

.message-popup-items {
Expand Down
4 changes: 2 additions & 2 deletions packages/rocketchat-ui-flextab/flex-tab/tabs/userInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
{{> avatar username=username}}
</div>
<div class="info">
<h3 title="{{username}}"><i class="status-{{status}}"></i> {{username}}</h3>
<p>{{name}}</p>
<h3 title="{{name}}"><i class="status-{{status}}"></i> {{name}}</h3>
<p>@{{username}}</p>
<p>
{{#each roleTags}}
<span class="role-tag" data-role="{{description}}">{{description}}</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-message/message/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{{#if alias}}
<button type="button" class="user user-card-message" data-username="{{u.username}}" tabindex="1">{{alias}} <span class="message-alias">@{{u.username}}</span></button>
{{else}}
<button type="button" class="user user-card-message" data-username="{{u.username}}" tabindex="1">{{u.username}}</button>
<button type="button" class="user user-card-message" data-username="{{u.username}}" tabindex="1">{{u.name}}</button>
{{/if}}
<span class="info">
{{#each roleTags}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ Meteor.startup ->
return

filteredUsersMemory.remove({})
messageUsers = RocketChat.models.Messages.find({rid: Session.get('openedRoom'), 'u.username': {$ne: Meteor.user().username}}, {fields: {'u.username': 1, ts: 1}, sort: {ts: -1}}).fetch()
messageUsers = RocketChat.models.Messages.find({rid: Session.get('openedRoom'), 'u.username': {$ne: Meteor.user().username}}, {fields: {'u.username': 1, 'u.name': 1, ts: 1}, sort: {ts: -1}}).fetch()
uniqueMessageUsersControl = {}
messageUsers.forEach (messageUser) ->
if not uniqueMessageUsersControl[messageUser.u.username]?
uniqueMessageUsersControl[messageUser.u.username] = true
filteredUsersMemory.upsert messageUser.u.username,
_id: messageUser.u.username
username: messageUser.u.username
name: messageUser.u.name
status: Session.get('user_' + messageUser.u.username + '_status') or 'offline'
ts: messageUser.ts

Expand Down Expand Up @@ -43,6 +44,7 @@ Template.messagePopupConfig.helpers
items.push
_id: item.username
username: item.username
name: item.name
status: item.status

# Get users of room
Expand Down
2 changes: 2 additions & 0 deletions packages/rocketchat-ui-sidenav/side-nav/accountBox.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Template.accountBox.helpers
myUserInfo: ->
visualStatus = "online"
username = Meteor.user()?.username
name = Meteor.user()?.name
switch Session.get('user_' + username + '_status')
when "away"
visualStatus = t("away")
Expand All @@ -15,6 +16,7 @@ Template.accountBox.helpers
visualStatus: visualStatus
_id: Meteor.userId()
username: username
fname: name
}

showAdminOption: ->
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-sidenav/side-nav/accountBox.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{> avatar username=username}}
</div>
<div class="data">
<h4>{{username}}</h4>
<h4>{{fname}}</h4>
</div>
{{/if}}
</div>
Expand Down
5 changes: 4 additions & 1 deletion packages/rocketchat-ui-sidenav/side-nav/chatRoomItem.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Template.chatRoomItem.helpers
return 'status-' + (Session.get('user_' + this.name + '_status') or 'offline')

name: ->
return this.name
if RocketChat.settings.get('UI_Use_Real_Name') and this.fname
return this.fname
else
return this.name

roomIcon: ->
return RocketChat.roomTypes.getIcon this.t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h4>{{_ "List_of_Direct_Messages"}}</h4>
<li>
<a href="{{pathFor 'direct' username=name}}" class="channel-link">
<i class="icon-at {{userStatus}}"></i>
{{name}}
{{fname}}
<span class='opt fixed'>
{{#if hidden}}
<i class="icon-eye-off" title="{{_ "Hidden"}}" aria-label="{{_ "Hidden"}}"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Template.listDirectMessagesFlex.onCreated(function() {
this.roomsList = new ReactiveVar([]);
this.autorun(() => {
this.hasMore.set(true);
let options = { fields: { name: 1 } };
let options = { fields: { name: 1, fname: 1 } };
if (_.isNumber(this.limit.get())) {
options.limit = this.limit.get();
}
Expand All @@ -83,7 +83,11 @@ Template.listDirectMessagesFlex.onCreated(function() {
}
let query = { t: 'd' };
if (s.trim(this.nameFilter.get())) {
query.name = new RegExp(s.trim(s.escapeRegExp(this.nameFilter.get())), 'i');
let filter = new RegExp(s.trim(s.escapeRegExp(this.nameFilter.get())), 'i');
query.$or = [
{ name: filter },
{ fname: filter }
];
}

this.roomsList.set(RocketChat.models.Subscriptions.find(query, options).fetch());
Expand Down
15 changes: 14 additions & 1 deletion packages/rocketchat-ui/views/app/room.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,20 @@ Template.room.helpers
roomData = Session.get('roomData' + this._id)
return '' unless roomData

return RocketChat.roomTypes.getRoomName roomData?.t, roomData
room = RocketChat.roomTypes.getRoomName roomData?.t, roomData
if typeof room is 'object'
return if RocketChat.settings.get('UI_Use_Real_Name') then room.fname or room.name else room.name
else
return room

secondaryName: ->
if not RocketChat.settings.get('UI_Use_Real_Name')
return false
roomData = Session.get('roomData' + this._id)
return '' unless roomData

room = RocketChat.roomTypes.getRoomName roomData?.t, roomData
return if typeof room is 'object' then room.name

roomTopic: ->
roomData = Session.get('roomData' + this._id)
Expand Down
3 changes: 3 additions & 0 deletions packages/rocketchat-ui/views/app/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ <h2>
{{/if}}
<i class="{{roomIcon}} status-{{userStatus}}"></i>
<span class="room-title">{{roomName}}</span>
{{#if secondaryName}}
<span class="secondary-name">@{{secondaryName}}</span>
{{/if}}
<span class="room-topic">{{{RocketChatMarkdown roomTopic}}}</span>
</h2>
</header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ Template.spotlightTemplate.helpers({
return 'status-' + (Session.get(`user_${this.name}_status`) || 'offline');
}
return 'status-offline';
},

name() {
if (RocketChat.settings.get('UI_Use_Real_Name') && this.fname) {
return this.fname;
} else {
Copy link

Choose a reason for hiding this comment

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

You can reutrn without else.
if (RocketChat.settings.get('UI_Use_Real_Name') && this.fname) {
return this.fname;
}

return this.name;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing @givisok, I've made the change suggested.

return this.name;
}
}
});
1 change: 1 addition & 0 deletions server/methods/addRoomModerator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Meteor.methods
u:
_id: fromUser._id
username: fromUser.username
name: fromUser.name
role: 'moderator'

if RocketChat.settings.get('UI_DisplayRoles')
Expand Down
1 change: 1 addition & 0 deletions server/methods/addRoomOwner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Meteor.methods
u:
_id: fromUser._id
username: fromUser.username
name: fromUser.name
role: 'owner'

if RocketChat.settings.get('UI_DisplayRoles')
Expand Down
2 changes: 2 additions & 0 deletions server/methods/createDirectMessage.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Meteor.methods
open: true
$setOnInsert:
name: to.username
fname: to.name
t: 'd'
alert: false
unread: 0
Expand All @@ -67,6 +68,7 @@ Meteor.methods
,
$setOnInsert:
name: me.username
fname: me.name
t: 'd'
open: false
alert: false
Expand Down
1 change: 1 addition & 0 deletions server/methods/muteUserInRoom.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ Meteor.methods
u:
_id: fromUser._id
username: fromUser.username
name: fromUser.name

return true
Loading