From 06b610cd725f1772dcc381c9ea663495ddb380f3 Mon Sep 17 00:00:00 2001 From: cabaceira Date: Fri, 29 Sep 2023 14:56:44 +0100 Subject: [PATCH] Updated useQuickActions.tsx to allow Omnichannel Chats to be placed on hold by the agent even when the last message was not sent by him --- .../Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx b/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx index 7f376341992d..9eded2fe82ff 100644 --- a/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx +++ b/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx @@ -309,7 +309,7 @@ export const useQuickActions = (): { const canSendTranscriptPDF = usePermission('request-pdf-transcript'); const canCloseRoom = usePermission('close-livechat-room'); const canCloseOthersRoom = usePermission('close-others-livechat-room'); - const canPlaceChatOnHold = Boolean(!room.onHold && room.u && !(room as any).lastMessage?.token && manualOnHoldAllowed); + const canPlaceChatOnHold = Boolean(!room.onHold && room.u && manualOnHoldAllowed); const hasPermissionButtons = (id: string): boolean => { switch (id) {