From 81e3f3ed2cf381543e200adb26aa9bf57127969d Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 23 Aug 2017 10:07:14 +0200 Subject: [PATCH] fix(Chat): better code for limit file size --- src/components/chat/ChatModel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/chat/ChatModel.cpp b/src/components/chat/ChatModel.cpp index 8e8d17efa..3fcb5b4c8 100644 --- a/src/components/chat/ChatModel.cpp +++ b/src/components/chat/ChatModel.cpp @@ -42,7 +42,9 @@ #define THUMBNAIL_IMAGE_FILE_WIDTH 100 // Not enabled by default. -#define LIMIT_FILE_SIZE 0 +#ifndef LIMIT_FILE_SIZE + #define LIMIT_FILE_SIZE 0 +#endif // In Bytes. (500) #define FILE_SIZE_LIMIT 524288000