Skip to content

Commit

Permalink
[FIX] Sound notification is not emitted when the Omnichannel chat com…
Browse files Browse the repository at this point in the history
…es from another department (#22291)
  • Loading branch information
renatobecker authored and sampaiodiego committed Jun 28, 2021
1 parent ebb83a0 commit 5b7cfb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/livechat/client/lib/stream/queueManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ const events = {
return LivechatInquiry.remove(inquiry._id);
}
delete inquiry.type;
LivechatInquiry.upsert({ _id: inquiry._id }, { ...inquiry, alert: true, _updatedAt: new Date(inquiry._updatedAt) });
const saveResult = LivechatInquiry.upsert({ _id: inquiry._id }, { ...inquiry, alert: true, _updatedAt: new Date(inquiry._updatedAt) });
if (saveResult?.insertedId) {
newInquirySound();
}
},
removed: (inquiry) => LivechatInquiry.remove(inquiry._id),
};
Expand Down

0 comments on commit 5b7cfb8

Please sign in to comment.