New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Livechat triggers not firing #15897
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is another place calling it without waiting for the promise to resolve:
const agent = Livechat.getNextAgent(department); |
@sampaiodiego, I just pushed the requested change. I didn't implement it before because we're not using/calling that method(Meteor) anymore, but yeah, there is a chance that someone is using it externally, so I just fixed it. Thanks. |
Thanks guys for fixing this annoying bug ! 👍 |
Hello, after updating to 2.3.1, triggers still do not work. The trigger turns on and the live chat disappears. Until 2.3.0 it was normal. |
Hi @CH1PSET1! Can you please check your browser console? If you get any error there, can you please share it here? Thanks. |
|
Hi @CH1PSET1, I know what it's happening. I'm going to raise this discussion internally to define the best alternative to get this fix out ASAP. |
@CH1PSET1, the issue has been fixed. Thanks. |
Hi @CH1PSET1 and @renatobecker , I have been able to test 2.3.2 on 2 installations and I can confirm the error have been fixed.
I have checked your website, and I don't see the Triggers error in your logs, the console displays an other set of errors related to I would suggest the following steps:
Regards |
In fact, I also do not understand what is happening. Earlier, before switching to version 2.3.0 when entering the site, a trigger worked and a live chat opened. Now, I'm on version 2.3.2, when I enter the site, the trigger seems to work, but the chat becomes transparent and does not appear (as in the screenshot above). Because of what this situation is, I do not know and cannot find a solution. If you do not use triggers, then the chat is working fine. I don’t quite understand how to disable the Google Status Map, can you tell me? Thanks. |
Hi, Sure, first thing first head to the Administration: 1- Search for
|
My Google maps were already turned off, so the situation has not changed .. For questions:
|
Hi @CH1PSET1 , I have checked your livechat and I don't see the errors anymore. So I guess that it's because you have deactivated the triggers. I have also run some tests on the components.chunk and the file is free from any error. So let's proceed differently this time: But before :) have you followed all the steps highlighted here for the Manual update ? https://rocket.chat/docs/installation/updating/
All you JS files assets are cached 304. Regards, |
1.1. Previously, the trigger worked, as soon as the user navigated to the site www.tunc72.ru, a live chat opened and asked how it could be helped, then the user answered in a chat and accepted the question the first free operator. I’ll clarify, another trigger is on the site www.centrnp72.ru, where it fires after 20 seconds of conducting on the site. You can see that the first 20 seconds the live chat works, and then, as the trigger works, it disappears.
|
Guys, the error is on the widget, so it would be better to create a new issue on the correct Livechat Widget repo. So, the reason for this error is pretty simple, your As I just explained, this is a bug on the Thanks. |
@renatobecker You saved the day sir ! Thanks 👍 |
CLOSES #15842
The
Livechat.getNextAgent
method returns a promise, but there was a promise handler missing when calling this method inside thelivechat/agent.next
endpoint, then the expected value wasn't being returned.