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.
This commit is contained in:
Muhsin Keloth
2025-04-17 15:47:56 +05:30
committed by GitHub
parent ce55e80bb4
commit 97895db85e

View File

@@ -213,12 +213,17 @@ export default {
// Check there is a instagram inbox exists with the same instagram_id // Check there is a instagram inbox exists with the same instagram_id
hasDuplicateInstagramInbox() { hasDuplicateInstagramInbox() {
const instagramId = this.inbox.instagram_id; const instagramId = this.inbox.instagram_id;
const { additional_attributes: additionalAttributes = {} } = this.inbox;
const instagramInbox = const instagramInbox =
this.$store.getters['inboxes/getInstagramInboxByInstagramId']( this.$store.getters['inboxes/getInstagramInboxByInstagramId'](
instagramId 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() { replyWindowBannerMessage() {