Prevent >64k text in composition box; truncate too-large drafts

This commit is contained in:
Scott Nonnenberg 2019-09-13 14:54:19 -07:00
parent 87ae65c852
commit 095cd884a2
5 changed files with 116 additions and 7 deletions

View file

@ -323,6 +323,7 @@
onSubmit: message => this.sendMessage(message),
onEditorStateChange: (msg, caretLocation) =>
this.onEditorStateChange(msg, caretLocation),
onTextTooLong: () => this.showToast(Whisper.MessageBodyTooLongToast),
onChooseAttachment: this.onChooseAttachment.bind(this),
micCellEl,
attachmentListEl,