WideChat / Rocket.Chat

Have your own Slack like online chat, built with Meteor.
https://rocket.chat/
Other
3 stars 1 forks source link

[myViasat PR] change default department name to 'virtualassistant' #1147

Open ear-dev opened 2 years ago

ear-dev commented 2 years ago

Currently the default department in the integration script is set to 'Viasat Virtual Assistant'. However we are now going to manage our UsRes RC instances using terraform in our automation, and the department names will now match the agent names.

In the case of UsRes it needs to be 'virtualassistant'.

Please make a PR against the myViasat repo for this change. I will make sure that our RC servers are backwards compatible while these changes roll out in the mobile apps over time.

Shailesh351 commented 2 years ago

Created PR https://git.viasat.com/ICAT/MyViasat/pull/1131

diff --git a/packages/shared/containers/rocketChat.tsx b/packages/shared/containers/rocketChat.tsx
index b15599000..e4172c17d 100644
--- a/packages/shared/containers/rocketChat.tsx
+++ b/packages/shared/containers/rocketChat.tsx
@@ -199,7 +199,7 @@ const rocketChatMethods = {
   setRocketChatDataAfterLoad: `
     RocketChat(function () {
       this.dropTriggerMessage();
-      this.setDepartment('Viasat Virtual Assistant');
+      this.setDepartment('virtualassistant');
     });
     `,
 };