chatwoot/app/javascript/dashboard/components-next/message
Daniel Bates 03719cede0
fix: Correct reversed message status indicators for API channel (#13594)
## Description

Fixes the reversed message delivery status indicators for the API
channel. The API inbox was grouped with the web widget inbox in the
`isDelivered` computed property, causing both to treat a `sent` status
as `delivered`. Since the API channel provides real
`sent`/`delivered`/`read` status values from external systems (unlike
the web widget which has no separate delivery confirmation), the API
inbox needs its own handling.

**Before this fix:**
- Status `sent` (0) → incorrectly showed delivered checkmarks
- Status `delivered` (1) → incorrectly showed "Sending" spinner

**After this fix:**
- Status `sent` → correctly shows sent indicator (single checkmark)
- Status `delivered` → correctly shows delivered indicator (double
checkmarks)
- Status `read` → unchanged (already worked correctly)

The web widget inbox behavior is unchanged — it still treats `sent` as
`delivered` since it lacks a separate delivery confirmation mechanism.

Fixes #13576

## Type of change

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

## How Has This Been Tested?

Verified by code review that the computed properties now correctly map
API channel message statuses:
- `isSent` returns `true` when `status === 'sent'` for API inbox
- `isDelivered` returns `true` when `status === 'delivered'` for API
inbox
- `isRead` unchanged — already checks `status === 'read'` for API inbox
- Web widget inbox logic is unchanged

## 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
- [x] My changes generate no new warnings

*This PR was created with the assistance of Claude Opus 4.6 by
Anthropic. Happy to make any adjustments! Reviewed and submitted by a
human.*

Co-authored-by: Your Name <your-email@example.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2026-03-16 13:21:18 +04:00
..
bubbles fix: Formatting issue with reply preview content (#13399) 2026-01-30 16:35:32 +05:30
chips feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30
fixtures feat: Add new message bubbles (#10481) 2024-12-12 17:42:22 -08:00
stories feat: Template types components (#12714) 2025-10-29 17:06:32 +05:30
constants.js feat: Display story replies with attachment and context label (#13356) 2026-01-28 16:47:04 +04:00
Message.vue fix(slack): Show correct sender name and avatar for Slack replies (#13624) 2026-02-26 16:15:15 +05:30
MessageError.vue fix: Enhance notification emails with message details and handle failed messages (#13273) 2026-02-16 14:47:33 +05:30
MessageList.vue chore: Update theme colors and add new Inter variable fonts (#13347) 2026-01-28 14:36:04 -08:00
MessageMeta.vue fix: Correct reversed message status indicators for API channel (#13594) 2026-03-16 13:21:18 +04:00
MessageStatus.vue feat: Add new message bubbles (#10481) 2024-12-12 17:42:22 -08:00
provider.js chore: Update message bubble orientation (#11348) 2025-05-06 13:21:52 +05:30
TranslationToggle.vue chore: Improve translation service with HTML and plain text support (#11305) 2025-04-16 17:59:06 +05:30