Skip to content

Commit

Permalink
Fixed incorrect error that user is not in the room
Browse files Browse the repository at this point in the history
Fixed incorrect error that user is not in the room when the user is in the room.
  • Loading branch information
Matthew Shirley authored Apr 29, 2017
1 parent 6ef9c39 commit 76b3442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-slashcommands-mute/server/mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RocketChat.slashCommands.add('mute', function Mute(command, params, item) {
});
return;
}
if ((room.usernames || []).includes(username)) {
if ((room.usernames || []).includes(username) === false) {
RocketChat.Notifications.notifyUser(Meteor.userId(), 'message', {
_id: Random.id(),
rid: item.rid,
Expand Down

0 comments on commit 76b3442

Please sign in to comment.