chatwoot/app/javascript/dashboard/store
Shivam Mishra 84822a013a
fix: inconsistent reply box cc update (#10799)
This PR target two issues

### CC & BCC not updated correctly

When moving from one conversation to another, the store may not have the
list of all the messages. A fetch is subsequently made to get the
messages. However, this update does not trigger the `currentChat`
watcher. This PR fixes it by adding a new watcher on
`currentChat.messages`.

We also update the `setCCAndToEmailsFromLastChat` method to reset the
`cc`, `bcc` and `to` fields if the last email is not found. This ensures
that the data is not carried forward from a previous email

Fixes: https://github.com/chatwoot/chatwoot/issues/10477

### To address are not added correctly to the `CC`

If the `to` address of a previous email has multiple recipient, there
was no case to add them to the CC.

Fixes: https://github.com/chatwoot/chatwoot/issues/8925

---

Depends on: https://github.com/chatwoot/utils/pull/41
2025-02-11 17:45:59 +05:30
..
captain feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
modules fix: inconsistent reply box cc update (#10799) 2025-02-11 17:45:59 +05:30
utils feat: update notification settings (#10529) 2024-12-05 19:05:04 +05:30
index.js feat(v4): Update the report pages to show aggregate values (#10766) 2025-01-28 09:19:18 +05:30
mutation-types.js chore: Search improvements (#10801) 2025-02-03 19:34:50 +05:30