up
This commit is contained in:
@@ -273,6 +273,14 @@ class SimpleWhatsAppManager {
|
||||
this.log(`Estadística actualizada: ${item.id} = ${item.value}`);
|
||||
}
|
||||
});
|
||||
|
||||
// Actualizar badge de conversaciones en el menú lateral (compatibilidad con versión simple)
|
||||
const convBadge = document.getElementById('conversations-count');
|
||||
if (convBadge) {
|
||||
const val = stats.total_conversations || 0;
|
||||
convBadge.textContent = val;
|
||||
convBadge.style.display = val > 0 ? 'inline-block' : 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user