diff --git a/conversations.php b/conversations.php index d4e370b..4355631 100644 --- a/conversations.php +++ b/conversations.php @@ -959,16 +959,17 @@ } }; } - holdIndicator.textContent = 'EN ESPERA'; - holdIndicator.style.color = '#b85'; - holdIndicator.style.display = 'inline'; - } else if (conv.advisor_requested) { - holdIndicator.textContent = 'SOLICITUD PENDIENTE'; - holdIndicator.style.color = '#f39c12'; - holdIndicator.style.display = 'inline'; - } else { - holdIndicator.style.display = 'none'; - } + + if (conv.on_hold) { + holdIndicator.textContent = 'EN ESPERA'; + holdIndicator.style.color = '#b85'; + holdIndicator.style.display = 'inline'; + } else if (conv.advisor_requested) { + holdIndicator.textContent = 'SOLICITUD PENDIENTE'; + holdIndicator.style.color = '#f39c12'; + holdIndicator.style.display = 'inline'; + } else { + holdIndicator.style.display = 'none'; } if (releaseBtn) { @@ -1074,9 +1075,6 @@ }; } } - } - }; - } if (btn) { btn.textContent = conv.bot_enabled ? 'Bot: On' : 'Bot: Off'; diff --git a/index.php b/index.php index 5bf14f8..50bc79b 100644 --- a/index.php +++ b/index.php @@ -207,7 +207,10 @@ try {