diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-05 09:43:35 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-12-05 09:43:35 -0500 |
commit | b9b986b7418472812a0391c2e83344553a15b4d9 (patch) | |
tree | b463266556dbb84147289001020a8009102a7f63 /webapp/components/create_comment.jsx | |
parent | 7b0b0be977abe30d4fac1524d22fe40c0205d895 (diff) | |
download | chat-b9b986b7418472812a0391c2e83344553a15b4d9.tar.gz chat-b9b986b7418472812a0391c2e83344553a15b4d9.tar.bz2 chat-b9b986b7418472812a0391c2e83344553a15b4d9.zip |
Fix replying to threads with empty message and a file (#4693)
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r-- | webapp/components/create_comment.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx index a0a4ddcd2..e8378da2c 100644 --- a/webapp/components/create_comment.jsx +++ b/webapp/components/create_comment.jsx @@ -123,7 +123,7 @@ export default class CreateComment extends React.Component { MessageHistoryStore.storeMessageInHistory(message); - if (message.trim().length === 0 && this.state.previews.length === 0) { + if (message.trim().length === 0 && this.state.fileInfos.length === 0) { return; } |