[NEW] Multiple trigger conditions for Livechat
@RocketChat/core Addresses part of #1824
New ability to combine different conditions for the triggers already available in the Livechat settings.

New condition type where a trigger works according to the Livechat plugin's language. Here is the new condition attribute once saved to mongodb
"conditions" : [
{
"id" : 1,
"name" : "page-url",
"value" : "http://url.of.your.choice"
},
{
"id" : 2,
"name" : "language",
"value" : "fr"
}
...
],
@sampaiodiego I made an update on my develop branch to make the language condition work with the client language selection that's introduced in PR #8196. Since the translation PR would be required for this feature to be integrated, should I merge both features in the same PR?
What do you suggest?
This is awesome. Been waiting for this feature for a long time.
hi @icosamuel I would suggest to still keep them as separate PRs, but I see how difficult it can be.
let me take a closer look into both so I can give you a proper answer
hi @sampaiodiego We love livechat, and we would like to suggest a feature: In the email sent with the form (name, email, message) when agents are offline, It would be interesting to include the url of the website from which it was generated. In our company we work with two sites (two hotels) and in this way we know for which hotel information is requested.
thanks @valentincollado .. that is a good feature.. can you please open a new issue for it? so we all can track it :wink:
New issue created #8961
@icosamuel is there anything missing on this PR? I give it a quick try and seems to be working
@sampaiodiego indeed, it currently works with the server's language.
In #8196, I changed that behaviour to be the language of the plugin's host page (with the API call). There is an additional bit of code to make both features work together. This bit of code is only available on my dev branch where I merged both features.
What do you think would be best in this situation?
I did rebase it, with the latest dev version. livechat-8669-2.txt
@edurenye feel free to push in my repo if it helps with the completion of this feature ;)
Now it passes the tests and eslint
Hi @edurenye!
I'll review your PR, sorry for the late reply. Can you please fix the conflicts?
Thanks.
Sorry, but I'm not working with RocketChat anymore, but if somebody wants to continue with it can ask icosamuel for permission to push to that branch.
@renatobecker does this still makes sense?