Update conversations.php
This commit is contained in:
+9
-9
@@ -835,7 +835,7 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
<div>
|
<div>
|
||||||
<h5 class="mb-0">💬 Conversaciones
|
<h5 class="mb-0">💬 Conversaciones
|
||||||
<span class="badge bg-warning text-dark ms-2" style="font-size: 9px; padding: 2px 6px; animation: pulse 2s infinite;">
|
<span class="badge bg-warning text-dark ms-2" style="font-size: 9px; padding: 2px 6px; animation: pulse 2s infinite;">
|
||||||
v1.3.0-<?php echo substr(time(), -4); ?>
|
v1.4.0-<?php echo substr(time(), -4); ?>
|
||||||
</span>
|
</span>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
@@ -1014,9 +1014,9 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
// ESTE LOG DEBE APARECER PRIMERO
|
// ESTE LOG DEBE APARECER PRIMERO
|
||||||
console.clear();
|
console.clear();
|
||||||
console.log('%c═══════════════════════════════════════════', 'color: #25d366; font-weight: bold;');
|
console.log('%c═══════════════════════════════════════════', 'color: #25d366; font-weight: bold;');
|
||||||
console.log('%c🚀 WHATSAPP BOT v1.3.0 - Desarrollado por U-Site.app', 'background: #25d366; color: white; padding: 10px 20px; font-size: 18px; font-weight: bold; border-radius: 5px;');
|
console.log('%c🚀 WHATSAPP BOT v1.4.0 - Desarrollado por U-Site.app', 'background: #25d366; color: white; padding: 10px 20px; font-size: 18px; font-weight: bold; border-radius: 5px;');
|
||||||
console.log('%c═══════════════════════════════════════════', 'color: #25d366; font-weight: bold;');
|
console.log('%c═══════════════════════════════════════════', 'color: #25d366; font-weight: bold;');
|
||||||
window.__APP_VERSION__ = '1.3.0';
|
window.__APP_VERSION__ = '1.4.0';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@@ -1034,10 +1034,10 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
<script src="assets/js/chat-common.js?v=<?php echo $asset_v; ?>"></script>
|
<script src="assets/js/chat-common.js?v=<?php echo $asset_v; ?>"></script>
|
||||||
<script>
|
<script>
|
||||||
// ============================================
|
// ============================================
|
||||||
// 🚀 VERSIÓN ACTUALIZADA - 3 FEBRERO 2026
|
// 🚀 VERSIÓN ACTUALIZADA - 20 FEBRERO 2026
|
||||||
// ============================================
|
// ============================================
|
||||||
console.log('%c📦 Asset Version:', 'font-weight: bold; color: #2575fc;', '<?php echo $asset_v; ?>');
|
console.log('%c📦 Asset Version:', 'font-weight: bold; color: #2575fc;', '<?php echo $asset_v; ?>');
|
||||||
console.log('%c✨ Cambios: Gestión de usuarios del sistema, búsqueda mejorada en BD, plantillas optimizadas', 'color: #666;');
|
console.log('%c✨ Cambios: Descarga automática de media, cache local en media-url.php, parser de sticker, fix extensiones MIME', 'color: #666;');
|
||||||
console.log('============================================');
|
console.log('============================================');
|
||||||
|
|
||||||
// Fallback ligero para showAlert (si no existe una implementación global)
|
// Fallback ligero para showAlert (si no existe una implementación global)
|
||||||
@@ -1069,7 +1069,7 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
|
|
||||||
class WhatsAppChat {
|
class WhatsAppChat {
|
||||||
constructor() {
|
constructor() {
|
||||||
console.log('%c✅ WhatsAppChat v1.3.0 - Constructor iniciado', 'background: #10b981; color: white; padding: 4px 8px; font-weight: bold; border-radius: 3px;');
|
console.log('%c✅ WhatsAppChat v1.4.0 - Constructor iniciado', 'background: #10b981; color: white; padding: 4px 8px; font-weight: bold; border-radius: 3px;');
|
||||||
this.currentConversationId = null;
|
this.currentConversationId = null;
|
||||||
this.currentUserId = null;
|
this.currentUserId = null;
|
||||||
this.conversations = []; // Lista de usuarios/conversaciones en el sidebar
|
this.conversations = []; // Lista de usuarios/conversaciones en el sidebar
|
||||||
@@ -1126,7 +1126,7 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
console.log('🎯 Iniciando WhatsAppChat v1.3.0...');
|
console.log('🎯 Iniciando WhatsAppChat v1.4.0...');
|
||||||
this.loadConversations();
|
this.loadConversations();
|
||||||
this.setupEventListeners();
|
this.setupEventListeners();
|
||||||
this.setupAutoRefresh();
|
this.setupAutoRefresh();
|
||||||
@@ -1148,8 +1148,8 @@ if (!isset($_SESSION['user_id'])) {
|
|||||||
toast.innerHTML = `
|
toast.innerHTML = `
|
||||||
<span class="nt-icon">🚀</span>
|
<span class="nt-icon">🚀</span>
|
||||||
<div>
|
<div>
|
||||||
<strong>Versión 1.3.0 Cargada</strong><br>
|
<strong>Versión 1.4.0 Cargada</strong><br>
|
||||||
<small style="opacity: 0.9;">03 Feb 2026</small>
|
<small style="opacity: 0.9;">20 Feb 2026</small>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
document.body.appendChild(toast);
|
document.body.appendChild(toast);
|
||||||
|
|||||||
Reference in New Issue
Block a user