Skip to content

Commit 1125f96

Browse files
committed
Test
1 parent fafd081 commit 1125f96

File tree

2 files changed

+449
-74
lines changed

2 files changed

+449
-74
lines changed

apps/meteor/client/providers/OmnichannelProvider.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,15 @@ const OmnichannelProvider = ({ children }: OmnichannelProviderProps) => {
9191
const isOverMacLimit = useShouldPreventAction('monthlyActiveContacts');
9292

9393
useEffect(() => {
94+
console.log({ isPrioritiesEnabled });
9495
if (!isPrioritiesEnabled) {
9596
return;
9697
}
9798

98-
return subscribe('omnichannel.priority-changed', () => {
99-
queryClient.invalidateQueries({
100-
queryKey: ['/v1/livechat/priorities'],
101-
});
99+
console.log('Subscribing to omnichannel priority changes');
100+
return subscribe('omnichannel.priority-changed', (arg) => {
101+
console.log('omnichannel.priority-changed', arg);
102+
queryClient.invalidateQueries({ queryKey: ['/v1/livechat/priorities'] });
102103
});
103104
}, [isPrioritiesEnabled, queryClient, subscribe]);
104105

0 commit comments

Comments
 (0)