KamoCRM

MarkAsRead after agent send so lastViewed advances

Fixkamo-internal
Shipped
25 ஏப்ரல், 2026 அன்று 11:47 PM UTC
Author
kamo
Commit
82fed0d

On support tickets, both visitor and agent messages are stored under the same systemMember, so the unread-count query is member-agnostic and relies entirely on lastViewed. If the agent doesn't markAsRead after sending, their own reply ends up counted as a new visitor message in the list-row badge. Call markAsRead on a successful send.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing