Prevent >64k text in composition box; truncate too-large drafts
This commit is contained in:
parent
87ae65c852
commit
095cd884a2
5 changed files with 116 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue