Support tickets need member-agnostic unread counts

Fixkamo-shared-library
ส่งแล้ว
25 เมษายน 2569 เวลา 23:47 UTC
ผู้เขียน
Kamo
ตั้งค่า
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.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์