|
|
@ -376,6 +376,7 @@ const alertNotification = (uniqueid, type = 'add') => { |
|
|
|
$('#' + uniqueid.replace('.', `\\.`) + " .chat-right-bottom-right").empty() |
|
|
|
$('#' + uniqueid.replace('.', `\\.`) + " .chat-right-bottom-right").empty() |
|
|
|
if(type != 'remove'){ |
|
|
|
if(type != 'remove'){ |
|
|
|
listaMensagem(uniqueid).then(mensagens => { |
|
|
|
listaMensagem(uniqueid).then(mensagens => { |
|
|
|
|
|
|
|
console.log(mensagens) |
|
|
|
const countMsg = mensagens.data.filter(e => { |
|
|
|
const countMsg = mensagens.data.filter(e => { |
|
|
|
if(e.event.mensagem.status != 'read'){ |
|
|
|
if(e.event.mensagem.status != 'read'){ |
|
|
|
return true |
|
|
|
return true |
|
|
|