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

[FIX] Actionable messages are now sent to integrations webhook #27052

Merged
merged 8 commits into from
Oct 17, 2022
3 changes: 2 additions & 1 deletion apps/meteor/app/livechat/server/hooks/sendToCRM.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function sendToCRM(type, room, includeMessages = true) {
const msg = {
_id: message._id,
username: message.u.username,
msg: message.msg,
msg: message.msg || JSON.stringify(message.blocks),
murtaza98 marked this conversation as resolved.
Show resolved Hide resolved
...(message.blocks && message.blocks.length > 0 ? { blocks: message.blocks } : {}),
ts: message.ts,
editedAt: message.editedAt,
};
Expand Down