Skip to content

Commit

Permalink
Merge pull request #10082 from kb0304/bugfix-10026
Browse files Browse the repository at this point in the history
[FIX] Cannot answer to a livechat as a manager if agent has not answered yet
  • Loading branch information
rodrigok authored Mar 26, 2018
2 parents 46366fa + 6a2c1d1 commit 8932197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/methods/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Meteor.methods({
}

const subscription = RocketChat.models.Subscriptions.findOneByRoomIdAndUserId(message.rid, Meteor.userId());
if (subscription && subscription.blocked || subscription.blocker) {
if (subscription && (subscription.blocked || subscription.blocker)) {
RocketChat.Notifications.notifyUser(Meteor.userId(), 'message', {
_id: Random.id(),
rid: room._id,
Expand Down

0 comments on commit 8932197

Please sign in to comment.