Skip to content
Snippets Groups Projects
Unverified Commit 2fa78b05 authored by Kevin Aleman's avatar Kevin Aleman Committed by Diego Sampaio
Browse files

feat: Monitors able to forward chats without joining (#30549)

parent 919fe1f3
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
---
fix: Monitors now able to forward a chat without taking it first
......@@ -300,8 +300,9 @@ export const useQuickActions = (): {
const manualOnHoldAllowed = useSetting('Livechat_allow_manual_on_hold');
const hasManagerRole = useRole('livechat-manager');
const hasMonitorRole = useRole('livechat-monitor');
const roomOpen = room?.open && (room.u?._id === uid || hasManagerRole) && room?.lastMessage?.t !== 'livechat-close';
const roomOpen = room?.open && (room.u?._id === uid || hasManagerRole || hasMonitorRole) && room?.lastMessage?.t !== 'livechat-close';
const canMoveQueue = !!omnichannelRouteConfig?.returnQueue && room?.u !== undefined;
const canForwardGuest = usePermission('transfer-livechat-guest');
const canSendTranscriptEmail = usePermission('send-omnichannel-chat-transcript');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment