diff --git a/src/mibew/libs/chat.php b/src/mibew/libs/chat.php index 03bcbca2..6094a509 100644 --- a/src/mibew/libs/chat.php +++ b/src/mibew/libs/chat.php @@ -748,6 +748,7 @@ function chat_start_for_user( // Create thread $thread = Thread::create(); $thread->state = Thread::STATE_LOADING; + $thread->agentId = 0; if ($requested_operator && $requested_operator_online) { $thread->nextAgent = $requested_operator['operatorid']; }