Support tickets need member-agnostic unread counts

Fixkamo-shared-library
Ya
25 Aprili 2026, 23:47 UTC
Mwandishi
Kamo
Ahadi ya
8031ad4

Visitor messages on support tickets are stored under the same systemMember that the agent authenticates as, so the existing CHAT-session unread queries — which exclude m.member.id = :memberId — always returned 0 for support sessions. The ticket-list badge therefore never appeared. Adds countAllInSession + countAllInSessionAfter (no member filter) and routes SUPPORT_TICKET sessions through them in getUnreadCountsByMember. The agent calls markAsRead after every reply, so lastViewed always points at their most recent send and only true visitor messages end up counted as unread.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei