fix chat badge on reply
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user