Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

When Agent Routing is set to Manual Selection, I see onAssignAgent callback is executed multiple times for the same Agent #604

Open
jarismar opened this issue May 5, 2021 · 0 comments

Comments

@jarismar
Copy link
Contributor

jarismar commented May 5, 2021

Hi, I'm trying to set Agent Routing to Manual, but when I do this, for some reason, I see the client widget start executing the callback onAssignAgent multiple times (usually between 27 to 32 times very quickly), as soon as the agent joins the conversation.

I'll try to investigate and bring more details also will create an isolated page for testing.

Steps to reproduce:

  1. on Administration / Omnichannel / Routing / Omnichannel routing method
  2. change from the default Auto Selection to Manual Selection
  3. on client make sure you listen to onAssignAgent callback.
  4. start a new conversation

rocket_chat_live_on_assign_agent_issue

On above image, the callback was executed 21 times, I have no idea why, not sure if I'm doing anything wrong.

@jarismar jarismar changed the title When Agent Routing is set to Manual Selection, I see onAssignAgent callback is executed multiple times When Agent Routing is set to Manual Selection, I see onAssignAgent callback is executed multiple times for the same Agent May 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant