Skip to content

Commit

Permalink
feat: Monitors able to forward chats without joining (#30549)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman authored and sampaiodiego committed Oct 6, 2023
1 parent 919fe1f commit 2fa78b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-hounds-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

fix: Monitors now able to forward a chat without taking it first
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2fa78b0

Please sign in to comment.