From 1fc048fec9fca4015904d48a7246aaf0716ca8d2 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Sat, 15 Oct 2022 01:26:11 +0300 Subject: [PATCH] Save correct number of a visitor's messages for threads related to offline messages --- .../libs/classes/Mibew/RequestProcessor/ThreadProcessor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php b/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php index d90f67f5..42746160 100644 --- a/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php +++ b/src/mibew/libs/classes/Mibew/RequestProcessor/ThreadProcessor.php @@ -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();