iachat/app/javascript/dashboard
Sivin Varghese e97e68b1ba
fix: Message signature is not appending (#10855)
# Pull Request Template

## Description

**Issue:** The message signature wasn't being appended to new email
conversations when a target inbox was selected.

**Solution:** To address this, a reusable `handleSignatureSetup`
function was created to manage the signature logic. The same logic was
applied in both cases, when the inbox selection changed (using `watch`)
and during the initial load (using `mounted`).

Fixes
https://linear.app/chatwoot/issue/CW-4005/allow-to-activate-the-message-signature-for-new-email-conversations-by
https://github.com/chatwoot/chatwoot/issues/10836

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Steps to reproduce**:
https://github.com/chatwoot/chatwoot/issues/10836#issuecomment-2637354304

### Loom video

**Before**

https://www.loom.com/share/ccf597cfa8d94d0eaff1222102901d2c?sid=abfea42b-425e-446e-8e92-99359b786607

**After**

https://www.loom.com/share/d9deddfcf8de48ab87e31911dfb774d8?sid=c1aac19b-b243-428e-9a9f-2ad9f4efe49c


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-02-07 16:28:27 +05:30
..
api chore: Search improvements (#10801) 2025-02-03 19:34:50 +05:30
assets revert: Next bubble improvements (#10795) 2025-01-29 20:04:45 -08:00
components fix: re-rendering of components when shifting from the unread list to the read list (#10835) 2025-02-07 08:54:25 +05:30
components-next fix: Message signature is not appending (#10855) 2025-02-07 16:28:27 +05:30
composables feat: Add frontend changes for Captain limits (#10749) 2025-01-24 09:21:09 -08:00
constants feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
helper chore: Disable audio alert for pending status conversation (#10777) 2025-01-28 18:49:12 +05:30
i18n feat: Adds support for telegram contact sharing (#10841) 2025-02-06 14:23:08 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: show email subject in conversation search results (#10843) 2025-02-06 10:38:57 +05:30
routes feat: Add unread badge to sidebar for inbox view (#10803) 2025-01-31 15:14:10 +05:30
store chore: Search improvements (#10801) 2025-02-03 19:34:50 +05:30
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat(v4): Update the report pages to show aggregate values (#10766) 2025-01-28 09:19:18 +05:30