summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-05 09:43:35 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-12-05 09:43:35 -0500
commitb9b986b7418472812a0391c2e83344553a15b4d9 (patch)
treeb463266556dbb84147289001020a8009102a7f63 /webapp
parent7b0b0be977abe30d4fac1524d22fe40c0205d895 (diff)
downloadchat-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')
-rw-r--r--webapp/components/create_comment.jsx2
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;
}