fix(chat-input): restore RoomWidgetUpdateChatInputContentEvent.TEXT mode

Upstream 7007752 removed the TEXT constant + its handler case while migrating
in-component inserts to setChatValue, but NotificationDefaultAlertView still
dispatches TEXT to copy a command into the chat input (the only cross-component
path to set the input). Restore the constant and the handler case (setChatValue
+ focus, matching the command-selector path). Fixes TS2339.
This commit is contained in:
simoleo89
2026-06-07 12:04:53 +02:00
parent 3cd6c5a518
commit 288b59f168
2 changed files with 5 additions and 0 deletions
@@ -236,6 +236,10 @@ export const ChatInputView: FC<{}> = props =>
{
switch(event.chatMode)
{
case RoomWidgetUpdateChatInputContentEvent.TEXT:
setChatValue(event.userName);
inputRef.current?.focus();
return;
case RoomWidgetUpdateChatInputContentEvent.WHISPER: {
setChatValue(`${ chatModeIdWhisper } ${ event.userName } `);
return;