Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
I recently made some simple modifications to the Twilio module to work with Whatsapp and I would like to know if it is possible to end the chat permanently. For every user interaction if Chat timeout is not reached, Livehelperchat reopens the chat.
Offline
Hi jersonjunior ,
welcome on the live helper chat forum!
About your question I need ask to the chat owner. I cannot grant a reply but i will try to.
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Hi,
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;
}
Offline
Hi, It worked with this code but if the client sends another message for example after 5 minutes the LHC does not receive more messages from that client! I had to remove the chat there and open another chat!
Offline
Well default logic is just always if chat is closed. Make it pending again if i receive new messages. Fb extension has something similar what you want. Perhaps it would help
https://github.com/LiveHelperChat/fbmes … tstrap.php
Offline
I'll take a look at the code, there is some possibility of updating the Twilio module for Whatsapp, I left in github the modifications I made.
Offline
Hi remdex
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;
//}`
Offline
Pages: 1