Update conversations.php

This commit is contained in:
Lizandro Guarnizo
2026-01-25 23:49:58 -05:00
parent b68a4737a8
commit b0107df7f2
+2 -1
View File
@@ -2133,7 +2133,8 @@
attendStatus.textContent = `Atendido por ${c.in_service_by_name || 'un asesor'}`;
// show status message in chat
try { this.showStatusMessageInChat(userId, 'Un asesor te está atendiendo'); } catch(e){/* ignore */}
} else if (s.advisor_requested) {
} else if ( (s.advisor_requested) || (c && c.advisor_requested) ) {
// Show Atender if either server reports a request OR local conversation record has it
attendToggleBtn.innerHTML = '<i class="fas fa-user-check"></i> Atender';
attendToggleBtn.classList.remove('btn-light','text-dark');
attendToggleBtn.classList.add('btn-outline-light');