From b0107df7f27ef8ea4aa40e89e3e4780fdf33eee9 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 25 Jan 2026 23:49:58 -0500 Subject: [PATCH] Update conversations.php --- conversations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');