diff --git a/conversations.php b/conversations.php index eac7844..6219034 100644 --- a/conversations.php +++ b/conversations.php @@ -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 = ' Atender'; attendToggleBtn.classList.remove('btn-light','text-dark'); attendToggleBtn.classList.add('btn-outline-light');