Skip to content

Commit

Permalink
chore: apply form disabled chat input logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Aug 23, 2024
1 parent 22843d6 commit 02f62c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/chat/ui/ChatInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const ChatInput = () => {
disabled={config.isOnline ? isMessageInputDisabled : true}
messageInputRef={ref}
currentChannel={channel as any}
messages={dataSource.messages}
sendUserMessage={(params) => {
const processedParams = handlers.onBeforeSendMessage(params);
dataSource.sendUserMessage(processedParams, handlers.onAfterSendMessage).then(handlers.onAfterSendMessage);
Expand Down

0 comments on commit 02f62c8

Please sign in to comment.