Merge pull request #10082 from kb0304/bugfix-10026

[FIX] Cannot answer to a livechat as a manager if agent has not answered yet
pull/10221/head^2
Rodrigo Nascimento 8 years ago committed by GitHub
commit 893219781c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/rocketchat-lib/server/methods/sendMessage.js

@ -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,

Loading…
Cancel
Save