forked from Shiloh/remnantchat
parent
64144021c9
commit
e891339907
@ -31,7 +31,7 @@ export const MessageForm = ({
|
|||||||
}, [textFieldRef])
|
}, [textFieldRef])
|
||||||
|
|
||||||
const canMessageBeSent = () => {
|
const canMessageBeSent = () => {
|
||||||
return textMessage.trim().length > 0 && !isMessageSending
|
return textMessage.trim().length > 0 && textMessage.trim().length < 1000 && !isMessageSending
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleMessageChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
const handleMessageChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user