From 7b5916ea9b6d7d001a821a7db9669cbb96ef9e72 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 25 Jan 2026 23:27:06 -0500 Subject: [PATCH] Revert "Update conversations.php" This reverts commit 186d8c565e10e2231c7dc5c9c1598f23e5fe0824. --- conversations.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conversations.php b/conversations.php index 42240c3..0f30cf3 100644 --- a/conversations.php +++ b/conversations.php @@ -1899,8 +1899,9 @@ } if (releaseBtn) { - // show button only when the conversation was put ON HOLD by an operator (not when the user requested an advisor) - releaseBtn.style.display = conv.on_hold ? 'inline-block' : 'none'; + // show button when on_hold or advisor_requested + releaseBtn.style.display = (conv.on_hold || conv.advisor_requested) ? 'inline-block' : 'none'; + releaseBtn.onclick = async () => { try { const resp = await fetch('api/release_hold.php', { method: 'POST',