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 committed Oct 15, 2024
1 parent 61c8cec commit 094b155
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 094b155

Please sign in to comment.