From 97895db85e6286f8b75f524b13c77b076c2797fc Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 17 Apr 2025 15:47:56 +0530 Subject: [PATCH] chore: Disable warnings old Instagram inbox for messenger conversations (#11329) We have added warnings for existing Instagram messenger inboxes via https://github.com/chatwoot/chatwoot/pull/11303. However, an issue arose where warnings were incorrectly displaying for messenger conversations. This PR resolves that issue. --- .../components/widgets/conversation/MessagesView.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue index 620d52379..77f411708 100644 --- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue @@ -213,12 +213,17 @@ export default { // Check there is a instagram inbox exists with the same instagram_id hasDuplicateInstagramInbox() { const instagramId = this.inbox.instagram_id; + const { additional_attributes: additionalAttributes = {} } = this.inbox; const instagramInbox = this.$store.getters['inboxes/getInstagramInboxByInstagramId']( instagramId ); - return this.inbox.channel_type === INBOX_TYPES.FB && instagramInbox; + return ( + this.inbox.channel_type === INBOX_TYPES.FB && + additionalAttributes.type === 'instagram_direct_message' && + instagramInbox + ); }, replyWindowBannerMessage() {