Skip to content

Commit

Permalink
Save correct number of a visitor's messages for threads related to of…
Browse files Browse the repository at this point in the history
…fline messages
  • Loading branch information
faf committed Oct 14, 2022
1 parent d6d5477 commit 1fc048f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ protected function apiProcessLeaveMessage($args)
$thread->userId = $visitor['id'];
$thread->userAgent = $user_browser;
$thread->state = Thread::STATE_LEFT;
$thread->messageCount = 1;
$thread->closed = time();
$thread->save();

Expand Down

0 comments on commit 1fc048f

Please sign in to comment.