mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix : mensajes internos, arreglar total numero mensajes
This commit is contained in:
@ -215,7 +215,7 @@ class Chat {
|
||||
${row.display}
|
||||
</p>
|
||||
</div>
|
||||
<span class="badge badge-center rounded-pill bg-danger messages-unread-contact">0</span>
|
||||
<span class="badge badge-center rounded-pill bg-danger messages-unread-contact">${row.totalMessages}</span>
|
||||
</a>
|
||||
</li>
|
||||
`
|
||||
@ -344,7 +344,6 @@ class Chat {
|
||||
try {
|
||||
|
||||
if (contacts.length) {
|
||||
console.log(contacts)
|
||||
|
||||
contacts.map((c, index) => {
|
||||
this._addContactToList(c)
|
||||
@ -469,7 +468,7 @@ class Chat {
|
||||
<h6 class="chat-contact-name text-truncate m-0">${contact?.first_name ?? "" + " " +
|
||||
contact?.last_name ?? ""}</h6>
|
||||
<p class="chat-contact-status text-muted text-truncate mb-0">
|
||||
${contact.username}
|
||||
${contact?.cliente_id ? "[CLIENTE]" : ""}${contact.username}
|
||||
</p>
|
||||
</div>
|
||||
${contact.unreadMessages ? `<span
|
||||
|
||||
Reference in New Issue
Block a user