Skip to content

Commit 0dbda40

Browse files
committed
Separate event for message being added via incoming webhook
1 parent 824115f commit 0dbda40

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎lhc_web/lib/core/lhchat/lhchatwebhookincomming.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,15 @@ public static function processMessage($incomingWebhook, $payloadMessage, $payloa
15621562
'webhook_msg' => $payloadMessage
15631563
));
15641564

1565+
erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.addmsguser_webhook', array(
1566+
'chat' => & $chat,
1567+
'msg' => $msg,
1568+
'source' => 'webhook',
1569+
'webhook' => & $incomingWebhook,
1570+
'webhook_data' => $payloadAll,
1571+
'webhook_msg' => $payloadMessage
1572+
));
1573+
15651574
// If operator has closed a chat we need force back office sync
15661575
erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.nodjshelper_notify_delay', array(
15671576
'chat' => & $chat,

0 commit comments

Comments
 (0)