twilio-professional-services/flex-project-template

Error with chat parking

JuanSanabria-SEAQ opened this issue · 2 comments

Good day I am communicating by this means because we currently have a problem with our plugin WhatsApp chat parking (API conversations) where at the time that an agent accepts the task of a chat parked in some occasions appears that is not part of the conversation the agent and in others comes normal conversation would like to know why this happens and how I can fix it.

imagen_2023-10-27_144758730
imagen_2023-10-27_144811716

dremin commented

Hello!
There is a known race condition in Flex UI that causes this to occur. Basically, when parking, a Redux action to update the conversation sometimes occurs after the action to unload the conversation, which places (an invalid version of) the conversation back into Redux, so when unparking, Flex doesn't load the conversation, because it thinks it's already loaded.

We have implemented a workaround at these lines of code which forces the unload after 2 seconds, so that when unparking, the conversation is loaded properly. You are likely seeing this issue due to that 2-second timer either being too long, or too short. I would suggest playing with the timer here to see if a different duration works better for you. If you are not able to find a reliable value for this, I would recommend submitting a support ticket to have this fixed from the product side.

dremin commented

Hi @JuanSanabria-SEAQ, please try Flex UI 2.5.0. This issue should be resolved in that version.