Save correct number of a visitor's messages for threads related to offline messages

This commit is contained in:
Fedor A. Fetisov 2022-10-15 01:26:11 +03:00
parent d6d5477022
commit 1fc048fec9

View File

@ -795,6 +795,7 @@ class ThreadProcessor extends ClientSideProcessor implements
$thread->userId = $visitor['id'];
$thread->userAgent = $user_browser;
$thread->state = Thread::STATE_LEFT;
$thread->messageCount = 1;
$thread->closed = time();
$thread->save();