Don't break the layout on empty text messages

This commit is contained in:
Konstantinos Sideris 2018-09-12 13:12:24 +03:00
parent c293b3ec1c
commit 4565f2cf00

View file

@ -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);