fix: Handle Instagram text and attachments as separate messages (#11315)

When we send text with attachments on Instagram, Instagram treats text
and attachments as separate messages. However, Chatwoot keeps them as a
single message. Since Instagram sends echo events for each message, this
can create duplicate messages in Chatwoot. To prevent this, we will send
text and attachments as separate messages.

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
This commit is contained in:
Muhsin Keloth
2025-04-16 20:46:47 +05:30
committed by GitHub
parent 630826baed
commit 0b156f6d4e
6 changed files with 31 additions and 11 deletions

View File

@@ -35,8 +35,7 @@ export default {
},
{ key: 'telegram', name: 'Telegram' },
{ key: 'line', name: 'Line' },
// TODO: Add Instagram to the channel list after the feature is ready to use.
// { key: 'instagram', name: 'Instagram' },
{ key: 'instagram', name: 'Instagram' },
];
},
...mapGetters({