We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e7a08 commit 53a0a87Copy full SHA for 53a0a87
src/components/MessageInput/hooks/useSubmitHandler.ts
@@ -20,6 +20,7 @@ export const useSubmitHandler = (props: MessageInputProps) => {
20
const handleSubmit = useCallback(
21
async (
22
event?: React.BaseSyntheticEvent,
23
+ // todo: think how can custom data be passed to both edited and created message. Do we want to keep customMessageData param
24
customMessageData?: Omit<UpdatedMessage, 'mentioned_users'>,
25
) => {
26
event?.preventDefault();
0 commit comments