Fix bottom info with author signature.

Fixes #17464.
This commit is contained in:
John Preston 2021-12-30 23:57:12 +03:00
parent 1b2642b017
commit a6f1a1bd62
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ void BottomInfo::layoutDateText() {
? (tr::lng_edited(tr::now) + ' ')
: QString();
const auto author = _data.author;
const auto prefix = author.isEmpty() ? qsl(", ") : QString();
const auto prefix = !author.isEmpty() ? qsl(", ") : QString();
const auto date = edited + _data.date.toString(cTimeFormat());
_dateWidth = st::msgDateFont->width(date);
const auto afterAuthor = prefix + date;