mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
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:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user