mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Don't break the layout on empty text messages
This commit is contained in:
parent
c293b3ec1c
commit
4565f2cf00
1 changed files with 0 additions and 3 deletions
|
@ -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 a new issue