fix chat badge on reply

This commit is contained in:
2026-04-15 23:11:53 -06:00
parent c0be2a6903
commit 703402b5b6

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;
}