fix chat badge on reply

This commit is contained in:
2026-04-15 23:11:53 -06:00
parent 1972488eb0
commit 4402d0398f

View File

@@ -90,8 +90,9 @@ public class ChatRealtimeClient implements WebSocket.Listener {
for (ConversationResponse conv : globalConversations.values()) {
if ("CLOSED".equals(conv.getStatus())) continue;
// Needs pickup
if (conv.getHumanRequestedAt() != null && conv.getStaffId() == null) {
// Needs pickup - only if we haven't already replied
if (conv.getHumanRequestedAt() != null && conv.getStaffId() == null
&& (currentUserId == null || !currentUserId.equals(conv.getLastSenderId()))) {
return true;
}