iachat/app
Muhsin Keloth 3edc636b76
fix: Instagram outgoing attachments (#9863)
Fixes
https://linear.app/chatwoot/issue/CW-3497/instagram-outgoing-attachments-are-not-rendering

It seems like Instagram outgoing attachment rendering has been broken
for a long time. We couldn't identify the issue because the check below
only inspects Instagram mentions.
```
metadata[:data_url] = metadata[:thumb_url] = external_url if message.instagram_story_mention?
```
We recently worked on adding the [Instagram CDN URL for
attachments.](https://github.com/chatwoot/chatwoot/pull/9287)

After that, it started using external URLs as attachment data URLs for
both outgoing and incoming attachments. The rendering broken for all the
outgoing attachments since there were no external URLs, making the data
URL empty. Adding an incoming message check will solve the issue.

---------

Co-authored-by: Sojan <sojan@pepalo.com>
2024-07-31 23:00:01 -07:00
..
actions fix: downcase email before finding (#8921) 2024-02-21 18:51:00 +05:30
assets chore: Reorganize the installation config settings (#8794) 2024-01-31 16:48:42 +04:00
builders feat: Render instagram reels in Chatwoot (#9829) 2024-07-24 12:58:12 -07:00
channels chore: Sentry issues (#4623) 2022-05-06 14:50:55 +05:30
controllers feat: Integration with Captain (alpha) (#9834) 2024-07-25 14:24:04 -07:00
dashboards feat: Super admin design improvements (#8517) 2023-12-08 19:40:35 -08:00
dispatchers fix: assignee_changed callback not getting triggered during conversation creation (#9334) 2024-05-06 11:48:17 -07:00
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
fields feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
finders feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
helpers feat: Improve Report API performance (#9476) 2024-05-22 17:34:24 -07:00
javascript fix: templates in whatsapp (#9862) 2024-07-31 15:33:31 +05:30
jobs feat: Integration with Captain (alpha) (#9834) 2024-07-25 14:24:04 -07:00
listeners fix: Use message sender ID in the analytics for first response time (#9605) 2024-06-06 20:20:35 -07:00
mailboxes chore: Stop processing auto-response emails (#9606) 2024-06-13 14:19:11 -07:00
mailers feat: add Google Email fetch and OAuth token refresh service (#9603) 2024-06-11 14:22:03 +05:30
models fix: Instagram outgoing attachments (#9863) 2024-07-31 23:00:01 -07:00
policies feat: Add endpoints to retrieve summary of team/agents over a period of time (#8916) 2024-02-13 15:44:40 +05:30
presenters chore: Stop processing auto-response emails (#9606) 2024-06-13 14:19:11 -07:00
services feat: Add the ability to un-assign teams using automation (#9668) 2024-06-26 12:40:36 -07:00
views chore: Add permissions to auth data (#9695) 2024-06-28 12:52:48 -07:00
workers fix: Capture delivery errors to avoid false positives (#8790) 2024-01-26 14:22:18 +04:00