mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-18 12:57:24 +03:00
Set default value for Thread's agent ID when a thread is created
This commit is contained in:
parent
730dd2f2df
commit
928328f2b0
@ -748,6 +748,7 @@ function chat_start_for_user(
|
|||||||
// Create thread
|
// Create thread
|
||||||
$thread = Thread::create();
|
$thread = Thread::create();
|
||||||
$thread->state = Thread::STATE_LOADING;
|
$thread->state = Thread::STATE_LOADING;
|
||||||
|
$thread->agentId = 0;
|
||||||
if ($requested_operator && $requested_operator_online) {
|
if ($requested_operator && $requested_operator_online) {
|
||||||
$thread->nextAgent = $requested_operator['operatorid'];
|
$thread->nextAgent = $requested_operator['operatorid'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user