chatwoot/app/javascript/dashboard/components/widgets/WootWriter
Muhsin Keloth c2523c5d8b
fix(editor): Refresh reply editor when reply window reopens in real-time (#14446)
On WhatsApp and any channel that disables the reply editor outside its
messaging window (WhatsApp Cloud, Twilio WhatsApp, API channels with
`agent_reply_time_window` set), when the window was already expired and
a new inbound message arrived in real-time, the "messaging restricted"
banner correctly hid but the editor itself stayed un-typeable until the
agent refreshed the page. This made the dashboard look like it accepted
replies even though typing did nothing.

Fixes
[CW-7087](https://linear.app/chatwoot/issue/CW-7087/reply-editor-stays-disabled-after-real-time-incoming-message-reopens)

#### How to reproduce

1. Open a WhatsApp conversation whose last incoming message is older
than 24h, so `can_reply` is `false` (banner shown, editor greyed out).
2. With the dashboard open on that conversation, have the customer send
a fresh inbound message (or simulate one via the channel's webhook).
3. Before the fix: banner disappears, editor wrapper loses its disabled
styling, but clicking into the editor and typing does nothing — refresh
required.
4. After the fix: banner disappears and the editor accepts input
immediately.

Co-authored-by: Muhsin <12408980+muhsin-k@users.noreply.github.com>
2026-05-14 12:16:58 +04:00
..
utils chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
AudioRecorder.vue fix: Update the reply box to handle play, pause callbacks from WaveSurfer (#10223) 2024-10-05 00:17:11 -07:00
constants.js Adds character count to reply box 😳 (#1634) 2021-01-13 19:16:45 +05:30
CopilotEditor.vue feat: Adds the ability to resize the editor (#13916) 2026-04-16 12:37:56 +05:30
CopilotMenuBar.vue feat: compose form improvements (#13668) 2026-03-02 18:27:51 +05:30
CopilotReplyBottomPanel.vue feat: new Captain Editor (#13235) 2026-01-21 13:39:07 +05:30
Editor.vue fix(editor): Refresh reply editor when reply window reopens in real-time (#14446) 2026-05-14 12:16:58 +04:00
EditorModeToggle.vue feat: new Captain Editor (#13235) 2026-01-21 13:39:07 +05:30
FullEditor.vue feat: inline url embeds in article editor (#14284) 2026-05-05 14:16:24 +05:30
keyboardEmojiSelector.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
ReplyBottomPanel.vue fix: Block inline images in message signatures (#13772) 2026-04-08 12:17:19 +05:30
ReplyTopPanel.vue feat: Adds the ability to resize the editor (#13916) 2026-04-16 12:37:56 +05:30
SlashCommandMenu.vue feat: add slash command menu to article editor (#14035) 2026-04-16 11:27:59 +05:30