Don't break the layout on empty text messages
This commit is contained in:
parent
c293b3ec1c
commit
4565f2cf00
@ -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…
Reference in New Issue
Block a user