Skip to content

Commit

Permalink
[FIX] Omnichannel session monitor is not starting (#18412)
Browse files Browse the repository at this point in the history
* Fix Omnicahnnel session handler.

* Fix remove user process.
  • Loading branch information
renatobecker authored and sampaiodiego committed Aug 1, 2020
1 parent f03a20a commit efb956a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions app/livechat/server/lib/stream/agentStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@ settings.get('Livechat_agent_leave_action_timeout', (_key, value) => {
});

settings.get('Livechat_agent_leave_action', (_key, value) => {
if (typeof value !== 'boolean') {
return;
}
monitorAgents = value;
});

settings.get('Livechat_agent_leave_action', (_key, value) => {
if (typeof value !== 'string') {
return;
}
action = value;
monitorAgents = value !== 'none';
action = value as string;
});

settings.get('Livechat_agent_leave_comment', (_key, value) => {
Expand Down Expand Up @@ -57,6 +48,7 @@ const onlineAgents = {
if (!this.exists(userId)) {
return;
}
this.users.delete(userId);

if (this.queue.has(userId)) {
clearTimeout(this.queue.get(userId));
Expand Down

0 comments on commit efb956a

Please sign in to comment.