Skip to content

Commit

Permalink
Updated useQuickActions.tsx to allow Omnichannel Chats to be placed o…
Browse files Browse the repository at this point in the history
…n hold by the agent even when the last message was not sent by him
  • Loading branch information
cabaceira committed Sep 29, 2023
1 parent 59f581d commit 06b610c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 06b610c

Please sign in to comment.