-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[NEW] Livechat notifications on new incoming inquiries for guest-pool #10588
[NEW] Livechat notifications on new incoming inquiries for guest-pool #10588
Conversation
@mrsimpson, can you fix the conflicts in this PR, please? |
@renatobecker of course. Before I do, please let me know if it’s ok to have livechat specific code in these files |
@mrsimpson, You will see that there have been many changes in the Thanks. |
I had already fixed this, however I'm not too happy with the implementation (as said four days ago) Still, I just updated this PR now to match the current development state. Because of the way notifications in RC are implemented, it's quite tricky to move the code to the livechat-package without duplicating a lot of code. Please have a look at it whether it matches your architectural needs or if it really has to move. In the later case, I'd appreciate if someone from the core-team did the refactoring of the notifications-stuff into a library). |
@mrsimpson, looking deeply your implementation, I can see that you are using an approach where the notifications will be triggered for every new messages that the guest/visitor sends, not just the first message when the inquiry is created, am I right? If I'm wrong about your use case, please let me know. In addition: The migration of the code to I'll be waiting for your feedback. |
2f1466a
to
493dde3
Compare
2f1466a
to
d3e9d60
Compare
@renatobecker like this? Now, a new notification is being create only for the first message which creates the queue entry - fixes #11137 |
Closes #7292
This fixes desktop notifications not being created if a live chat visitor created a room by sending the first message.
Remarks
room.t !== 'l'
) and implementing it there has a high re-use.