summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-12 13:12:24 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-12 13:12:24 +0300
commit4565f2cf00d92dc8160f3ff3490ea99f38f6b334 (patch)
tree6105158dacc6467e714b876f8575b0c5bba6d199
parentUse cmark.lib in appveyor (diff)
downloadnheko-4565f2cf00d92dc8160f3ff3490ea99f38f6b334.tar.xz
Don't break the layout on empty text messages
-rw-r--r--src/timeline/TimelineItem.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/timeline/TimelineItem.cpp b/src/timeline/TimelineItem.cpp
index 8e0401a8..5a339541 100644
--- a/src/timeline/TimelineItem.cpp
+++ b/src/timeline/TimelineItem.cpp
@@ -594,9 +594,6 @@ TimelineItem::markReceived(bool isEncrypted)
 void
 TimelineItem::generateBody(const QString &body)
 {
-        if (body.isEmpty())
-                return;
-
         QString content("<span>%1</span>");
 
         body_ = new TextLabel(content.arg(replaceEmoji(body)), this);