From ea2c4423288087d2a007b1988291ee55da9a2aaa Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Tue, 18 Apr 2023 22:35:11 -0700 Subject: [PATCH] chore: Add account_id as custom_attribute for cloud users (#6926) --- .../components/widgets/conversation/ConversationBox.vue | 1 + app/javascript/dashboard/helper/scriptHelpers.js | 1 + 2 files changed, 2 insertions(+) diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue index 189b0e67c..dc4a3bca4 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationBox.vue @@ -114,6 +114,7 @@ export default { }, 'currentChat.id'() { this.fetchLabels(); + this.activeIndex = 0; }, }, mounted() { diff --git a/app/javascript/dashboard/helper/scriptHelpers.js b/app/javascript/dashboard/helper/scriptHelpers.js index 90b872363..7807f2b45 100644 --- a/app/javascript/dashboard/helper/scriptHelpers.js +++ b/app/javascript/dashboard/helper/scriptHelpers.js @@ -57,6 +57,7 @@ export const initializeChatwootEvents = () => { window.$chatwoot.setCustomAttributes({ signedUpAt: user.created_at, cloudCustomer: 'true', + account_id: user.account_id, }); }