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()) {
|
for (ConversationResponse conv : globalConversations.values()) {
|
||||||
if ("CLOSED".equals(conv.getStatus())) continue;
|
if ("CLOSED".equals(conv.getStatus())) continue;
|
||||||
|
|
||||||
// Needs pickup
|
// Needs pickup - only if we haven't already replied
|
||||||
if (conv.getHumanRequestedAt() != null && conv.getStaffId() == null) {
|
if (conv.getHumanRequestedAt() != null && conv.getStaffId() == null
|
||||||
|
&& (currentUserId == null || !currentUserId.equals(conv.getLastSenderId()))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user