Skip to content

Commit

Permalink
chore: Get livechat rooms rooms properly on chats table (#33568)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Oct 14, 2024
1 parent cf84c57 commit a39f3c8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ export const useChatsQuery = () => {
query.queued = status === 'queued';
}

if (!canViewLivechatRooms) {
query.agents = userIdLoggedIn ? [userIdLoggedIn] : [];
}

if (canViewLivechatRooms && servedBy && servedBy !== 'all') {
query.agents = [servedBy];
} else {
query.agents = userIdLoggedIn ? [userIdLoggedIn] : [];
}

if (department && department !== 'all') {
Expand Down

0 comments on commit a39f3c8

Please sign in to comment.