Close Twilio SMS and Whatsapp chat when operator close chat.
In #https://github.com/LiveHelperChat/twilio/blob/master/bootstrap/bootstrap.php comment lines below:
Lines: 470, 471 and 493
`//if ($tChat !== false && ($chat = $tChat->chat) !== false ) {
//$renotify = false;
// fix LiveHelperChat/fbmessenger#1
if ($chat instanceof erLhcoreClassModelChat && $chat->status == erLhcoreClassModelChat::STATUS_CLOSED_CHAT) {
$chat->status = erLhcoreClassModelChat::STATUS_PENDING_CHAT;
$chat->status_sub_sub = 2; // Will be used to indicate that we have to show notification for this chat if it appears on list
$chat->user_id = 0;
$chat->pnd_time = time();
$renotify = true;
//}`
At the moment there is no setting for that. But you can make small modification there
https://github.com/LiveHelperChat/twili … p.php#L469
Something like
[== Undefined ==]
if (($chat = $tChat->chat) !== false) && $chat instanceof erLhcoreClassModelChat && $chat->status == erLhcoreClassModelChat::STATUS_CLOSED_CHAT) {
$tChat->removeThis();
$tChat = null;
}
About your question I need ask to the chat owner. I cannot grant a reply but i will try to.
]]>