Revert "Update conversations.php"

This reverts commit 186d8c565e.
This commit is contained in:
Lizandro Guarnizo
2026-01-25 23:27:06 -05:00
parent 186d8c565e
commit 7b5916ea9b
+3 -2
View File
@@ -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',