From b9b986b7418472812a0391c2e83344553a15b4d9 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 5 Dec 2016 09:43:35 -0500
Subject: Fix replying to threads with empty message and a file (#4693)

---
 webapp/components/create_comment.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/create_comment.jsx')

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;
         }
 
-- 
cgit v1.2.3-1-g7c22

