From b8c345f493cf9e16efc9d81a59dba657e29c4a3f Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 18 Aug 2021 00:55:36 +0100 Subject: [PATCH] Add max length to message box. --- src/components/common/messaging/MessageBox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/common/messaging/MessageBox.tsx b/src/components/common/messaging/MessageBox.tsx index 52d8358f..bcb5f72e 100644 --- a/src/components/common/messaging/MessageBox.tsx +++ b/src/components/common/messaging/MessageBox.tsx @@ -497,6 +497,7 @@ export default observer(({ channel }: Props) => { hideBorder maxRows={20} id="message" + maxLength={2000} onKeyUp={onKeyUp} value={draft ?? ""} padding="var(--message-box-padding)"