Don't break the layout on empty text messages

remotes/origin/HEAD
Konstantinos Sideris 6 years ago
parent c293b3ec1c
commit 4565f2cf00
  1. 3
      src/timeline/TimelineItem.cpp

@ -594,9 +594,6 @@ TimelineItem::markReceived(bool isEncrypted)
void void
TimelineItem::generateBody(const QString &body) TimelineItem::generateBody(const QString &body)
{ {
if (body.isEmpty())
return;
QString content("<span>%1</span>"); QString content("<span>%1</span>");
body_ = new TextLabel(content.arg(replaceEmoji(body)), this); body_ = new TextLabel(content.arg(replaceEmoji(body)), this);

Loading…
Cancel
Save